• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Navigation
    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

  • Remote Control Window
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • JavaScript allows the opening of new windows that can do a wide variety of things including acting as a mini-remote to a parent browser window. There are two documents in this example. Firstly, parent.html which has three main items in it. First, it declares the name of the current browser session. This is so links in the new window can target the current browser session. Secondly, it contains all the details on the remote window that will open up (the .htm file location, the size and position of the new window, etc.). Thirdly, it contains the hyperlink or button that starts up the new window. The remote window (remote.htm) has two main items. First, all the links are targeted (in this case by base href) so the remote window does not go away until someone clicks it to be closed from the X in the upper right hand corner or item number two, a close the window link. A close the window link allows for quick closure of the remote window.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    parent.html (or any existing document)

    <html>
    <body>
    <script language="JavaScript">
    <!-- 
    function new_window() 
    {
    // Name the Window, so the remote can target it
    self.name = "Parent_Window"; 

    var new_window = "scrollbars,resizable,width=250,height=150,left=700,top=25";
    OpenWindow = window.open("remote.htm", "remote", new_window);
    }
    -->
    </script>
    <a href="javascript:onClick=new_window();">Open Remote Window</a>
    <p>

    <form>
    <input type="button" value="Open Remote Window" onClick="new_window();">
    </form>

    </body>
    </html>

    remote.htm (The New Window)
    <html>
    <head>
    <title>CodeAve.com(JavaScript Remote Control</title>
    <base target="Parent_Window">
    </head>
    <body bgcolor="#FFFFFF">
    <ul>
    <li><a href="http://www.yahoo.com">Yahoo!</a>
    <li><a href="http://www.excite.com">Excite</a>
    <li><a href="http://www.lycos.com">Lycos</a>
    <li><a href="http://www.altavista.com">AltaVista</a>
    <li><a href="http://www.go.com">Go.com</a></li>
    </ul>
    <center>
    <a href="javascript:window.close();" target="_top">Close This Window</a>
    </center>
    </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