• 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

  • New Window (Within Previous Page)
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • Most new windows that you open with JavaScript are just targets to documents that exist on the server. However, there are times when you may want to pass all that script with the original document. Instances where there is not a whole lot of scripting inside the new window are great candidates for this as each new window that you script within the previous page is in affect downloaded over and over again and may only occasionally be utilized. The following example will demonstrate this with both a button and a hyperlink to open the new window.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <html>
    <title>CodeAve.com(JavaScript New Window within Previous Page)</title>
    <body bgcolor="#FFFFFF">
    <script language="JavaScript">
    <!-- 
    function open_new_window() 
    {
    new_window = open("","displayWindow","width=300,height=200,left=10,top=10");

    // open new document 
    new_window.document.open();

    // Text of the new document
    // Replace your " with ' or \" or your document.write statements will fail
    new_window.document.write("<html><title>JavaScript New Window</title>");
    new_window.document.write("<body bgcolor=\"#FFFFFF\">");
    new_window.document.write("This is a new html document created by JavaScript ");
    new_window.document.write("statements contained in the previous document.");
    new_window.document.write("<br>");
    new_window.document.write("<b>Image Example</b><br>");
    new_window.document.write("<img src=\"http://www.codeave.com/asp/codeave-logo.gif\">");
    new_window.document.write("<br>");
    new_window.document.write("<a href=\"http://www.codeave.com\" target=\"_blank\">HyperLink Example</a>");
    new_window.document.write("</body></html>");

    // close the document
    new_window.document.close(); 
    }

    // -->
    </script>


    <form>
    <input type=button value="Open New Window" onClick="open_new_window()">
    </form>

    <a href="javascript:open_new_window()">Open Nerw Window</a>

    </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