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 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    56
    Thanks
    2
    Thanked 0 Times in 0 Posts

    forcing a browser to a specific size

    hi chaps

    glad i found this forum, and hope I can get some answers

    all I need to do for the moment is get a piece of code I can put in some of my pages that forces the page to open to a specific size, and without any of the scroll bars, menus etc - just a plain window with nothing else

    thanks alot

    Masten

  • #2
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    396
    Thanks
    2
    Thanked 30 Times in 30 Posts
    You cannot alter the preferences and controls on a page unless you have opened it. For a new page yu can set just about anything like this:

    Something like this:


    <html>
    <head>
    <script language="JavaScript">
    <!--
    function openIt()
    {
    chrome = "width=100,"
    + "height=150,"
    + "location=0,"
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=0,"
    + "status=0,"
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "left=450,"
    + "top=100";
    x=window.open('temp.htm','',chrome);
    x.focus();
    }
    // -->
    </script>
    </head>
    <body onLoad="setTimeout('openIt()',1000)">
    Content of page
    </body>
    </html>
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #3
    New Coder
    Join Date
    Jan 2004
    Posts
    56
    Thanks
    2
    Thanked 0 Times in 0 Posts
    cobol

    right, thanks,

    i figured out the best way to do it is set a behaviour in the link,

    which I got from a preset..

    but thanks anyway

    Masten


  •  

    Posting Permissions

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