Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2003
    Location
    Detroit, MI
    Posts
    7

    Unanswered: Open web page in new window - w/o Javascript

    I need to open a web page, from PHP, in a new window without using any Javascript.

    I tried the following without any luck.

    header("Window: _blank");
    header("Location: SubmitInfo.php");

    Thanks in advance.

    Jim Aiello

  2. #2
    Join Date
    Dec 2002
    Posts
    65
    I don't think it's possible to do that in PHP as PHP occurs on the server end, and opening up a new window seems to be a client side task. Can you post more info about the overall goal you're trying to accomplish, maybe someone can suggest a workaround that will achieve the same effect.

    -b
    (I'm only available at the email address provided in my profile on weekdays, if you have questions or advice, during off hours use AIM). Also any views I provide here or on my website are mine and not representative of any views of my work, family, friends and sometimes even myself.

    http://www.bcyde.com

  3. #3
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    20
    why not add a new target in the link like

    Code:
    <a href="..." target="<randomstring>">Linktext</a>
    I hopefully believe there is no other posibilty to open new windows without Javascript or clicking a link, else a lot of popups will apear, even if JS is deactivated :-)

  4. #4
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    <a href="url" target="_blank">

    note that opening a new window this way is a deprecated behaviour -- you should allow the user to decide if she wants a new window

    rudy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •