#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Can I do a pop up window in PHP? I'm afraid of browsers that are not javascript enabled that won't have means to launch my pop up window.

    Any ideas?
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    18
    No. PHP is a server side scripting language and cannot be used for client side functions like JS can. The only way to do what you request is to have a link with a target outside the current browser that the user would have to manually click.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2001
    Location
    UK
    Posts
    527
    Rep Power
    14
    you could do something like this but you'd have no control over the window size etc.

    <SCRIPT>
    //current code to generate window using javascript
    </SCRIPT>
    <NOSCRIPT>
    <A href="newwwindow.html" target="_blank">No javascript!click here to see what you've missing.</a>
    </NOSCRIPT>


IMN logo majestic logo threadwatch logo seochat tools logo