Results 1 to 9 of 9

Thread: onload maximise window function?

  1. #1
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default onload maximise window function?

    hey i am creating a mini os type website, with an infinite visual start bar, draggable windows and i am using the contractable headers to minimise the windows. i have an iframe browser script provided by our freindly neiborhood twey, and im hoping it will be good once its done.

    but thats not my problem.
    i was wondering how to maximise the window its in, and remove the all the toolbars. the opposite would have to be done once the user leaves the site though....

    Thanks for your time, and Goodday to you all,
    ____Ryan "Boxxertrumps" Trumpa
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Can't be reliably done in today's multi-browser environment.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    but it can still be done, cant it?
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Not reliably. There is the window.resizeTo(x, y) object (which could be set off of the user's screen.availWidth and screen.availHeight objects). Many browsers block this just as a matter of course, others do not support it, others - it depends upon security settings. Only IE has objects that can be used to remove and replace the chrome of an already active window, several items are off limits due to security reasons - all of these commands can be (and often are) blocked with IE's own settings. You can achieve something like this via the window.open() object but, it requires a pop up and that is routinely blocked/modified by all browsers depending upon their security settings - once again, several items of the chrome are off limits.

    If you want your page to be interoperable, stick to what is inside the window - and for that matter avoid any dependence upon scripting. However, if you still want to do this as an exercise in scripting, that's fine, just leave the window alone as, anything you think that you are doing to it cannot be relied upon.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I believe that popup windows have some options like this... but they are obviously not compatible due to popup blockers and such. Usually, however, if the user initiates a popup by clicking a link, it works... just not if it's done automatically. Popup blockers are designed to check for this.
    (I think popup windows can even be set to fullscreen, like hitting F11)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    would it be possible to set off a function key with JS? if it is then theats cool but since the F-keys can be configured, bad stuff might happen. (thanks for the link tech support.) i probabally should of used the search bar instead of looking for it myself... do-it-yourselfer-genomes and junk, mumble mumble......mumble.....
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by tech_support
    Does nothing with the chrome. Is easily blocked in FF and IE with common security settings, doesn't work in other browsers. What about side bars - like search or history in IE or a bookmarked site open in a side bar in FF?

    As I said, unreliable.

    Quote Originally Posted by boxxertrumps
    would it be possible to set off a function key with JS?
    No. However, you could have an item on your page requesting that folks hit F11 for 'best results' or whatever. This could be even been hidden if there were already enough screen real estate for your mock OS.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can also remove the toolbars(at least in FF as far as I know) try searching the MDC documentation on the window object. But it prompts the user everytime to let the script to be run or not.

Bookmarks

Posting Permissions

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