justAnoob Posted May 31, 2009 Share Posted May 31, 2009 I have an echo statement that displays a picture. <?php echo '<img src="' . $row['imgpath2'] . '" width="150" alt="" />'; ?> What I would like to is have the picture clickable(no problem there) and then open itself up a new popup window with a bigger size of the picture. How would I go about opening the new window. I do not want it to be a new full size browser window, just like an alert window that is big enough for the picture. Maybe a width of 600 or so. Link to comment https://forums.phpfreaks.com/topic/160404-solved-open-new-window/ Share on other sites More sharing options...
Ken2k7 Posted May 31, 2009 Share Posted May 31, 2009 JavaScript's window.open(). Link to comment https://forums.phpfreaks.com/topic/160404-solved-open-new-window/#findComment-846443 Share on other sites More sharing options...
justAnoob Posted May 31, 2009 Author Share Posted May 31, 2009 anyway to do this with php, I'm not good with javascript. Link to comment https://forums.phpfreaks.com/topic/160404-solved-open-new-window/#findComment-846451 Share on other sites More sharing options...
Ken2k7 Posted May 31, 2009 Share Posted May 31, 2009 No? Link to comment https://forums.phpfreaks.com/topic/160404-solved-open-new-window/#findComment-846456 Share on other sites More sharing options...
gnawz Posted May 31, 2009 Share Posted May 31, 2009 Use Javascript and mix it with PHP Like what you have been given or window.location.href and make target blank Link to comment https://forums.phpfreaks.com/topic/160404-solved-open-new-window/#findComment-846463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.