<script>
function change(t){
alert(t.src)
}
</script>
<body>
<img src="http://www.w3schools.com/js/pic_bulboff.gif" onclick="change(this)" name="mani"/>
</body>
function change(t){
alert(t.src)
}
</script>
<body>
<img src="http://www.w3schools.com/js/pic_bulboff.gif" onclick="change(this)" name="mani"/>
</body>
Demo
0 comments:
Post a Comment