Problem with redirecting pages on click of images.
-
I am trying to redirect the user to different pages on click of various available images for different websites. How can use a single common function say, 'openSite' in script so as to handle all the redirection from various image clicks? Is it possible to get parameters like tag's id on run-time and use that to switch statements in the 'openSite' method to redirect the page to the appropriate one?
Regards, SPanicker.
modified on Wednesday, December 3, 2008 7:09 AM
-
I am trying to redirect the user to different pages on click of various available images for different websites. How can use a single common function say, 'openSite' in script so as to handle all the redirection from various image clicks? Is it possible to get parameters like tag's id on run-time and use that to switch statements in the 'openSite' method to redirect the page to the appropriate one?
Regards, SPanicker.
modified on Wednesday, December 3, 2008 7:09 AM
you can write an onclick that passes 'this' and it will pass your img tag to the javascipt method.
Christian Graus Driven to the arms of OSX by Vista.
-
you can write an onclick that passes 'this' and it will pass your img tag to the javascipt method.
Christian Graus Driven to the arms of OSX by Vista.