View Full Version : a simple question!!!!
ryubond007
09-18-2004, 02:58 PM
when a user clicks on ANY image which is on the page where i will put your javascript ........ the page redirects itself to http://www.hotmail.com
Please make this script for me :D
a rather bizarre request but ok.
<script>
function imgCatch()
{
for (var i=0; i<document.images.length; i++) {
document.images[i].onclick = function() { window.location.href = 'http://www.hotmail.com/' }
}
}
</script>
<body onload="imgCatch()">
edit:
before you make another post or start any thread read the rules posting guidelines:
http://www.codingforums.com/postguide.htm
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.