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 5 of 5

Thread: SecondWindow

  1. #1
    New to the CF scene
    Join Date
    Apr 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    SecondWindow

    My PC is working with "Windows98.second edition" and "Internet
    Explore 5.50".

    From the window of "Page.html" ( located on the desktop ),
    I need to open a "SecondWindow", where to display the
    "File.html" (located on the desktop too).

    "Page.html" incorporates a JavaScript.

    In a first test, Page.html was as follows.

    <HTML>
    <HEAD>
    <TITLE>SecondWindow</TITLE>
    <script language="JavaScript">
    <!--
    open("File.html","SecondWindow")
    //-->
    </script>
    </HEAD>

    <BODY>
    </BODY>
    </HTML>

    When I clicked on "Page.html", no SecondWindow was created.

    In a second test, I have changed the "File.html as follows:

    <HTML>
    <HEAD>
    <TITLE>SecondWindow</TITLE>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function openBrWindow(theURL,winName,features) {
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </HEAD>
    <BODY onLoad="openBrWindow('File.html','SecondWindow','');">
    </BODY>
    </HTML>

    In this test too, when I clicked on "Page.html", no SecondWindow
    was created.
    --------------------------------------------------------

    Why? Where are my errors?

    Thanks for your help.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    helped if you used the right syntax of window.open() not open

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Alien51,
    open() is fine. window is implied, just as with alert(), location, print(), etc.

    mori ,
    Are you sure you have javascript enabled?
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #4
    New to the CF scene
    Join Date
    Apr 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    second window

    Per Beetle
    Many other JavaScripts are working very well.
    Anyhow, as can I check if Javascript is enabled ?

  • #5
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If any script works anywhere on the entire internet, you have JavaScript enabled. It's on by default, and typically, you have to go completely out of your way to turn it off.

    If you haven't done that, it's probably on.


  •  

    Posting Permissions

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