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 7 of 7
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Spawning Browser @ size AND no Toolbars?

    OK. I got my browser window spawning at tthe desired size.

    i.e.,

    <frameset rows="*,80%" onload="javascript:resizeTo(1100,875)">

    Now I want to kill all the toolbars, etc.

    As in this:

    function POP_UP() {
    window.open('page.html','_blank','toolbar=no,location=no,directories=no,status=yes,menubar=no,resiza ble=no,copyhistory=no,scrollbars=no,width=550,height=400');
    }

    The problem is I can't get the toolbars to be gone using onload vs. when spawned by a link.

    Any help would be appreciated!
    Rick

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Delaware, USA
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Call your new window something else besides "_blank". _blank is a reserved word.

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Don't want a second window...

    What I want is one window, spawned by a link on the desktop, at a given size with no toolbars and other stuff.

    This doesn't work (I guess onload isn't going to do the trick, as the windows properties have already been assigned by then and it won't take them away at that point):

    <frameset rows="*,80%" onload="javascript:resizeTo(1100,875), 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,copyhistory=no,scrollbars= no'">

    Rick

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Delaware, USA
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    one way is to have a blank file that will spawn the window you want.

    ie...

    link on desktop to this...
    <HTML>
    <HEAD>
    <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <PARAM NAME="Command" VALUE="Close">
    </OBJECT>
    <SCRIPT>

    <!--
    function newWindow() {
    window.open('page.html','popUp','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizab le=no,copyhistory=no,scrollbars=no,width=550,height=400');


    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY onLoad="newWindow();closes.Click();">
    Welcome
    </BODY>
    </HTML>

  • #5
    New Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    We're Getting There!

    That's nice....now how do I get the window with the "Welcome" text to close after 2 seconds?

    Thanks!
    Rick

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Delaware, USA
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try setTimeout(closes.Click(), 200)

    it could be 2000, i never remember

  • #7
    New Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Error.

    I'm getting an error message after I added the code above.

    Error: closes is not defined

    Here's my code:

    <HTML>
    <HEAD>
    <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <PARAM NAME="Command" VALUE="Close">
    </OBJECT>
    <SCRIPT>

    <!--
    function newWindow() {
    window.open('start.html','popUp','toolbar=no,location=no,directories=no,status=yes,menubar=no,resiza ble=no,copyhistory=no,scrollbars=no,width=1150,height=875');
    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY onLoad="newWindow();closes.Click();">
    Welcome!
    </BODY>
    </HTML>

    Thanks,
    Rick


  •  

    Posting Permissions

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