Question

In: Computer Science

What are the advantages and disadvantages of working with the innerHTML property?

What are the advantages and disadvantages of working with the innerHTML property?

Solutions

Expert Solution

Advantages :

1). Simple to employ containing quick processing through a browser.

2). Quicker when compared to constructing the content by employing the DOM (Document Object Model) methods.

Disadvantages :

1).User is permitted for allocating HTML which is not effectively generated, that could disturb the DOM tree.

2).Setting innerHTML can damage or spoil the present HTML elements which contain event handlers joined for them,there is a possibility of  producing a memory release over few browsers.


Related Solutions

What are the advantages and disadvantages of owning personal property?  
What are the advantages and disadvantages of owning personal property?  
What are the advantages and disadvantages of leasing personal property?
What are the advantages and disadvantages of leasing personal property?
What are the advantages and disadvantages of using capitalization rates with an income property?
What are the advantages and disadvantages of using capitalization rates with an income property?
What are the advantages and disadvantages of operating a lodging property under a franchise agreement?
What are the advantages and disadvantages of operating a lodging property under a franchise agreement?
What are the advantages and disadvantages of brick-and-mortar stores? What are the advantages and disadvantages of...
What are the advantages and disadvantages of brick-and-mortar stores? What are the advantages and disadvantages of online stores? Which are there more of and how will this trend continue? Please answer in complete sentences with an overall total of 150 words or more.
What are the advantages and disadvantages of working in an autocratic, democratic, and laissez-faire work environment?
What are the advantages and disadvantages of working in an autocratic, democratic, and laissez-faire work environment?
What are advantages and disadvantages of Preferred Stock? Do they outweigh the advantages and disadvantages of...
What are advantages and disadvantages of Preferred Stock? Do they outweigh the advantages and disadvantages of Common Stock?
What are the advantages and disadvantages of globalization? The advantages and disadvantages of globalization can change...
What are the advantages and disadvantages of globalization? The advantages and disadvantages of globalization can change depending on whether or not they are being evaluated from a social or economic perspective. From an economic standpoint, globalization has provided ample opportunity for a number of American businesses to grow exponentially. Globalization has also had a large impact on how businesses are structured by altering supply chains which has arguably led to greater efficiency as well as lowering the cost of manufacturing...
What are the advantages and disadvantages of IRR?
What are the advantages and disadvantages of IRR?
What are the advantages and disadvantages of the NMOS?
What are the advantages and disadvantages of the NMOS?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT