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. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 31, 2009 Share Posted May 31, 2009 JavaScript's window.open(). Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 31, 2009 Share Posted May 31, 2009 No? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.