Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Redirecting javascript problem

    Hi there

    I put the following script in my hello.htm file:

    <script language="Javascript">
    if(document.referrer.indexOf("://") == -1){
    location = "http://myhome.com"}
    </script>

    But I want the "actual" hello.htm file to be shown in a pop out window....rather then redirecting to http://myhome.com

    I can' think of how to fix this at this point...because the javascriptpenpopup() functions as if I am typing it in the URL in the address bar...

    Is here any hint on how to modify this script?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That's confusing. You have this script in "hello.htm", and if the if-statement evaluates to true, exactly the same document shall be opened in popup window? So you have both "hello.html" in the main window and a popup window? Somehow this doesn't make sense to me, perhaps you start again explaining what you want.

    And the part with javascript:openpopup() I did not understand at all.


  •  

    Posting Permissions

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