| hwg-techniques archives | Jul 2003 | new search | results | previous | next |
inner HTML is it?by "John" <johnmoz(at)ozemail.com.au> |
|
<.html>
<.head>
<.script type="text/javascript">
var lastDiv = 3;
function doIt(){
alert(???);
}
</script>
</head>
<.body>
<.div id="div1" onClick="alert(doI());">Click Me</div>
<.div id="div2">Yeh Yeh</div>
<.div id="div3>No No</div>
</body>
</html>
If the id of the last div is only known by:
"div" + lastDiv
what do I need to put in the alert arguments [replacing ???] to put into the
alert box:
"No No".
Thanks very much in advance.
HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA