Menu
Hi, how can i get / set value of the name property of any tag?
Like here is what im trying to do:
[code=php]
<script language=javascript>
function test(e){
//alert(e.id)
next.name=”Is_it_working;
}
function next(e){
alert(e.my_tag);
}
</script>
<img id=”hello.jpg” onclick=test(this)>
<span id=”next” name=”” onclick=next(this) >Hello</span>
1. you click on image, rhis assigns the value to the name of the SPAN… then when you click on span you get the valuee assigned by clicking on the image