wilna Posted March 25, 2010 Share Posted March 25, 2010 Hi, I would really appreciate some help on this one. If the person click ons a link, I would like to open a new window with the relevat info, my code looks like this: <? echo "<a href=# onClick=MM_openBrWindow(ib3.php,,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=800)>Click Here</a>"; ?> Link to comment https://forums.phpfreaks.com/topic/196478-open-php-link-in-new-windw/ Share on other sites More sharing options...
tekrscom Posted March 25, 2010 Share Posted March 25, 2010 Why not just use target="_blank", otherwise you need JavaScipt help, not PHP... Link to comment https://forums.phpfreaks.com/topic/196478-open-php-link-in-new-windw/#findComment-1031677 Share on other sites More sharing options...
andrewgauger Posted March 25, 2010 Share Posted March 25, 2010 Working with an actual target name such as <a href="" target="mySitePopupWindow">click here to open</a> That way multiple links will change the location in the same window rather than opening multiple windows. (useful if you are doing glossaries or want to control content in a static window). Otherwise look into javascript:window.open in order to control the behavior of that window (such as size, position, etc). It might even be better to create an absolute position div that kills itself. Some popup blockers might deny your windows (browser default behavior allows popups generated by user's clicks). Link to comment https://forums.phpfreaks.com/topic/196478-open-php-link-in-new-windw/#findComment-1031692 Share on other sites More sharing options...
wilna Posted March 26, 2010 Author Share Posted March 26, 2010 Thank you! Link to comment https://forums.phpfreaks.com/topic/196478-open-php-link-in-new-windw/#findComment-1032081 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.