JavaScript DHTML/Node Operation/getElementById
"getElementById()" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript"> function function1() {
var m = document.getElementById("myA"); alert(m.innerText);
} </script>
Click in the following element:
<a id="myA"
href="http://www.wbex.ru" onclick="return(false);" onmouseup="function1();">This is a link
</a> </body> </html>
</source>