ChompGator Posted March 24, 2008 Share Posted March 24, 2008 I have an image, and I want to have the image - so that when someone clicks the image a pop-up window appears. I know how to make it so that when someone clicks a link that is text a pop-up window appears, but I dont know how to have an image instead of text and have it clickable so that a pop up window appears, here is my code below - any tips would be great! Thanks, <a href="http://webaddress.com" onclick="window.open('http://webaddress.com','popup','width=1000,height=1200,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false">General Information</a> Thanks! Link to comment https://forums.phpfreaks.com/topic/97658-linking-images/ Share on other sites More sharing options...
rhodesa Posted March 24, 2008 Share Posted March 24, 2008 <img src="path/to/image.jpg" onclick="window.open('http://webaddress.com','popup','width=1000,height=1200,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); " /> Link to comment https://forums.phpfreaks.com/topic/97658-linking-images/#findComment-499682 Share on other sites More sharing options...
ChompGator Posted March 24, 2008 Author Share Posted March 24, 2008 Thanks! Link to comment https://forums.phpfreaks.com/topic/97658-linking-images/#findComment-499695 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.