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
Related posts:
- Adding and removing child nodes using javascript and DOM
- How to close a child window from a parent window using javascript
- Windows XP tips for Removing the “Folder Options” menu
- Write data to a page using javascript
- Check password strength using javascript
- Disabling right click menu using javascript Enhanced Version
- Javascript setTimeout() Tricks
