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

    Join Date
    Jun 2002
    Posts
    20
    Rep Power
    0

    Redirect won't work with META when using JavaScript popup


    Hi kids j/k

    Basically I'm looking to put a pop up on my invisionboard board forum.

    However, I cannot find a spot to do the javascript popup seen below. I figured I could just have the users click on the link, a page would load with the javascript pop up, and at the same time they would redirect to the forum. For the user it would look like they simply went to the forum and had an annoying popup

    I used the content='3 refresh time just as an example, in the actual script it will be 0.

    I would appreciate any help. BTW if there is a better way to do this I am all ears. PHP header didn't work because then it redirects right away. ty Padriac


    Code:
    <html><head> 
    <meta http-equiv='refresh' content='3; URL=http://www.cnn.com'> 
    <SCRIPT LANGUAGE="JavaScript">
    
    popup('http://www.msn.com');
    function popup(filename){
    window.open(filename, "","height=300,width=300,top=550,left=550,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
    }
    
    // end -->
    </SCRIPT>
    </head><body> 
    please hold on
    </body></html>
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    20
    Rep Power
    0
    Ok I've got it I've posted this code in case someone runs into a similar problem

    Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <script language="javascript"> 
    
    
    popup('http://www.your-url.com/popup.html);
    function popup(filename){
    window.open(filename, "","height=300,width=300,top=550,left=550,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
    }
    
    <!-- 
    window.location.href='http://www.your-url.com/redirect.html' 
    --> 
    </script>
    
    </head>
    
    <body bgcolor="#FFFFFF" text="#000000">
    stuff
    </body>
    </html>
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    20
    Rep Power
    0
    sh1t, doesn't work in N4... trying something else.

IMN logo majestic logo threadwatch logo seochat tools logo