"; scriptDiv.insertAdjacentHTML ( "afterBegin", sHTML + sScript ); } else alert ( 'The script is already available.' ); } //-->
This example shows use of the innerHTML property to check for the existence of content on a DIV. A function inserts a script into the DIV if it isn't already there, using the insertAdjacentHTML method.
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.