Jump to content

open php link in new windw


wilna

Recommended Posts

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

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).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.