This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

DOM


Page 1 of 11

How to close a child window from a parent window using javascript

Here i will explain how to close a child window from a parent window using simple javascript. <meta name="Content-Script-Type" content="text/javascript"> <title>Example For Child and Parent Window Operations</title><script language="JavaScript">function closeDep() { //mistonline.in //refer us for more tutorials scripts if (main && !main.closed) main.close() else{ alert("I think you have not... (Continue reading)

Tagged with:         

Adding and removing child nodes using javascript and DOM

Here i will explain how to add and remove child nodes in a webpage using simple javascript and DOM [Document Object Model] elements. <html> <body> <script language="JavaScript"> function function2() { //any text can be given var m = "New Child"; var n = document.createElement("li"); n.appendChild(document.createTextNode(m)); document.getElementById("addelement").appendChild(n); } function function1() { addelement.removeChild(addelement.lastChild); } </script> <ul id="addelement"> <li>First... (Continue reading)

Tagged with:         

Page 1 of 11