inner HTML is it?
by "John" <johnmoz(at)ozemail.com.au>
|
| Date: |
Wed, 30 Jul 2003 10:34:21 +1000 |
| To: |
<hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
<.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
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.