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
document.getElementById('somediv').innerHTML= "hey man whats up?";
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