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

Reset

Removing Nodes using javascript

The code below will teach u how to remove child nodes using javascript


<script language=”javascript” type=”text/javascript”>function remove(parent,child){var p = document.getElementById(parent);var c = document.getElementById(child);

p.removeChild(c);

}

</script>

<input name=”balu1″ name=”ada1″ value=”To Remove” onclick=”remove(’torque’,’show’)” type=”button” />
<div id=”torque”>
<div id=”show”><img src=”urimage.jpg” /></div>

</div>

</html>


Any doubts plz contact me Undecided

VN:F [1.5.7_846]
Rating: 0.0/10 (0 votes cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Adding and removing child nodes using javascript and DOM
  2. How to close a child window from a parent window using javascript
  3. Windows XP tips for Removing the “Folder Options” menu
  4. Write data to a page using javascript
  5. Check password strength using javascript
  6. Disabling right click menu using javascript Enhanced Version
  7. Javascript setTimeout() Tricks

Leave a Reply

Comments (required)

Spam Protected