Hi All developers.
I'm trying to find out how can i delete some text inserted with the (innerHTML) DOM construct, the simple div i've designed its empty, and after an event handler call the function some text appears...like so
//code
function write(){
document.getElementById('somediv').innerHTML= "hey man whats up?";
}
//eof code
what i would like to create its a function that deletes that text.
anyway i would call the function through an event handler like so:
<a href="#" onMouseover="write()" onMousedown="delete()">blablabla</a>
Thank you guys for any help


Reply With Quote
Bookmarks