Advanced Search

Results 1 to 3 of 3

Thread: Open new window minimized?

  1. #1
    Join Date
    Dec 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Open new window minimized?

    can some1 please give me a code i can use to load a html minimized

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,704
    Thanks
    43
    Thanked 3,133 Times in 3,097 Posts
    Blog Entries
    12

    Default

    There is no HTML code for that. This javascript may be put in the head of the page:

    Code:
    <script type="text/javascript">
    onload=self.blur();
    </script>
    But, since it is javascript, only javascript enabled browsers will use it. And since the browser can usually only blur() a window in relationship to (an)other open window(s) in that browser session, it is best if the page that this script is on is opened using the target="_blank" attribute or the javascript window.open() method from the calling page. Example1:

    HTML Code:
    <a href="minimized.htm" target="_blank">Link Text</a>
    Example2:

    HTML Code:
    <a href="minimized.htm" onclick="window.open(this.href);return false;">Link Text</a>
    Some browsers, like Opera for example, that treat new windows as new tabs may react oddly to this strategy, as may a browser (like FF) that allows the user to choose 'open link in a new tab' by right clicking on a link and selecting that option, if chosen.

    Added:
    I just tried this out, and the tabbed browsers handled it well, they open the new tab and shift focus to the calling tab.
    Last edited by jscheuer1; 12-08-2005 at 09:08 PM.
    - John
    ________________________

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

  3. #3
    Join Date
    Dec 2005
    Location
    DeLand, Florida
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Do not do this, nobody wants popups let alone to be minimized.
    Sounds like a popup ad compaign

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
  •