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

  • Persistent Prompt (IE)
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • The JavaScript persistent prompt will enable you get input from your users that can be used in your document. Regardless if the person filling out the form clicks cancel or clicks OK without entering any input the user will be rerouted back to the prompt until it is filled out. In this example whatever is typed into the prompt window will be written to the browser once OK is clicked. Please note that since the page redirects to itself when "bad" input is detected, that the entire page up until the prompt command will also reload.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

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

    <script language="JavaScript">
    <!--
    // Generates a JavaScript prompt window for input
    // with a message stating Enter some text below in order to proceed
    // Any text in between the quotes after the comma will appear 
    // in the text input area as a pre-fill
    user_input=prompt("Enter some text below in order to proceed","");
    // Check to see if there is user input 
    // typeof(user_input) will equal object when cancel is clicked
    // user_input will = be null if OK is clicked without entering text
    if (typeof(user_input)=="object" || user_input == "")
    {
    // If there is no input redirect the user back to the same
    // page for them to fill out the prompt again
    location.replace(location.href);
    }
    // When user input is detected write it to the browser
    document.write("<b>You typed:</b> " + user_input);
    -->
    </script>



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