• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Misc
    ASP
    JavaScript
    ·Document Info
    ·Forms
    ·Images
    ·Miscellaneous
    ·Navigation
    ·Script Writers
    ·Contents
    ·What's New?
    CSS
    HTML
    Maps
    Links
    Mail List
    Search
    Sitemap


     

  • Retro 3 jordans
  • Jordan 13 retro
  • Nike free 5.0

  • Move the Browser Window
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • There may be occasions where you will want to implicitly instruct the browser where on the desktop you want a window to appear. The following examples contain a couple of functions that will position the window on opening or when any one of the links contained in the page is clicked, this will allow for more control on pop-up windows. You can hard-code values for the window position or you can base it on the viewable area set on the client.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <html>
    <title>
    CodeAve.com(Move Window)</title>
    <body bgcolor=
    "#FFFFFF">

    <script language
    ="JavaScript">
    <!--
    // This will move the window when it is opened or
    // refresh/reload is clicked to a location zero pixels to the left
    // and zero pixels from the top. Left command goes first,
    // top to bottom comes after
    self.moveTo(0,0)
    -->
    </script>
    When the window is opened or
    refresh/reload are clicked
    <br>the window will move to zero from the left and zero from the top


    <script language="JavaScript">
    <!--
    // function to allow the moving of the window location by link
    // to a location of 400 pixels from the left and 300 pixels from the top
    function move_2_400_300()
    {
    self.moveTo(400,300)
    }
    -->
    </script>
    <br>
    Click <a href="javascript:move_2_400_300();">here</a> to move
    the window to 400 pixels from the left and 300 pixels from the top


    <script language
    ="JavaScript">
    <!--
    // function to allow the moving of the window location by link
    // to a location of 1/2 the screen from the left
    // and 1/2 the screen from the top
    function move_2_half_half()
    {
    self.moveTo(screen.width/2,screen.height/2)
    }
    -->
    </script>
    <br>
    Click <a href="javascript:move_2_half_half();">here</a> to move
    the window to 1/2 way from the left and 1/2 way from the top


    <script language="JavaScript">
    <!--
    // This function will move the window when when clicked
    // to a location zero pixels to the left and zero pixels from the top.
    function move_2_0_0()
    {
    self.moveTo(0,0)
    }
    -->
    </script>
    <br>
    Click <a href="javascript:move_2_0_0();">here</a> to move
    the window to zero pixels from the left and zero pixels from the top

    </body>
    </html>

     

     

     



    ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
    Server Variables | Response Objects | Random Events | Miscellaneous
    HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
    JavaScript: Document Info | Forms | Images | Navigation | Script Writers
    CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low