Jump to content

Redirecting to a new Window.


pthurmond

Recommended Posts

you'd want to use javascript

[code]
<?
function popup($text, $link, $name="myWindow", $height="300", $width="300", $resizable="0", $status="0", $class=""){
return '<a href="#" onclick=\'javascript: window.open("'.$link.'", "'.$name.'", "status='.$status.', height='.$height.', width='.$width.', resizable='.$resizable.'")\' class='.$class.'>'.$text.'</a>';
}
?>
[/code]
Link to comment
Share on other sites

The problem is I have a script that has to store some data in the session data first and then redirects to a page that uses that data. The problem is I want the first page to open in the same window, but the redirected to page to open in another window. So I need it to automatically redirect to the page in a new window once it successfully processes the data.

Any ideas.

Thanks,
Patrick
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.