Quote:
Originally Posted by nation-x
why not do it like this instead
http://nation-x.com/test.html
Code:
<script type="text/javascript">
var arr = new Object();
function testIt() {
for (var i in arr) {
alert('arr[\''+i+'\'] is ' + arr[i])
}
}
</script>
If you click <a href="#" onClick="arr.item='Item Name'; arr.price='4.95';testIt(); return false;">this link</a> this script is executed:</p>
|
You're the man now dog! Thanks!