On the form is textbox in which the site address is entered(http://localhost.com/index.html). I want that in listbox contents of tags were output. How it can be made?
A:
If you want to output tag content (HTML), you can do this on the client side, because each parent node can reference its entire child content via the innerHTML or outerHTML properties. This returns the entire contents as a string, which you can assign its contents:
var a = document.getElementById("Test1"); document.getElementById("TextBox").value = a.outerHTML;
Brian
2009-12-26 01:54:14