#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    400
    Rep Power
    13

    Javascript popup using PHP?


    Hi, is there a script which checks if a user had javascript enabled? If it was, proceed with a popup if not redirect the user to a particular page?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    Code:
    <html>
    <head>
    <meta http-equiv="refresh" content="0;URL=http://url.com">
    <script language="JavaScript"> 
    <!-- Hide script from non-JS supported Browsers 
    function popup()
    { ..... }
    // end hiding --> 
    </script> 
    </head>
    </html>
    or
    Code:
    <head>
    <script>
    function popup()
    { ........ }
    </script>
    <noscript>
    <meta http-equiv="refresh" content="0;URL=http://www.url.com">
    </noscript>
    </head>

IMN logo majestic logo threadwatch logo seochat tools logo