Click to See Complete Forum and Search --> : removing html


geuis
02-25-2003, 11:43 AM
Is it possible to remove specific HTML coding from a page as its loading by the means of a javascript?

e.g.(normal page)

<html>
<title>Test Page 1</title>

<body>
<input type="button" value="Remove Me!">
</body>

</html>

will be..
<html>
<title>Test Page 1</title>

<body>

</body>

</html>

khalidali63
02-25-2003, 12:41 PM
Yes you can add or remove elements on the run time from a document using DOM.

try this link for more info on this.

http://www.mozilla.org/docs/dom/samples/dynatable-light/index.html

it shows adding and removing table elements,which is same to add or remove any other elements from document.

Cheers

Khalid

khaki
02-25-2003, 12:42 PM
Ooops!
Khalid trumped me while I was writing my reply... So... never mind mine (it adds nothing to his answer, so I've edited it out)

Sometimes visibility is set to "normal", but often hides "sensibility" onLoad...
k
(also too wordy to beat-out the really quick responders. lol)