javascript - Redirect on click of an image -
i trying have redirect on click of image, nothing happens. can please guide me.
<img src="img/facebook.png" style="border:0px;margin:2px;padding:2px;left;width:26px; height:20px;" onclick="window.location.href('https://www.facebook.com/pages/gr81');"/>
you can way
<img src="img/facebook.png" style="border:0px;margin:2px;padding:2px;left;width:26px; height:20px;" onclick="window.location='https://www.facebook.com/pages/gr81'"/>
Comments
Post a Comment