Results 1 to 4 of 4
  1. #1

  2. #2
    Senior Member dennis123's Avatar
    Join Date
    Apr 2013
    Location
    Bangalore
    Posts
    3,627
    Prompt() is a method of the window object.
    It is similar with alert box except for one addition.
    Prompt Box have “Cancle Button” on the pop up window.
    Prompt Box have “textbox” , which allows user to enter value.

    <html>
    <head>
    <script type="text/javascript">
    function show_prompt()
    {
    var name=prompt("Please enter your name","Pritesh");
    if(name!=null && name!="")
    {
    document.write("<p>Hello " + name + "</p>");
    }
    }
    </script>
    </head>
    <body>

    <input type="button"
    onclick="show_prompt()"
    value="Show prompt box"/>

    </body>
    </html>

  3. #3
    Registered User
    Join Date
    Sep 2017
    Posts
    30
    It is really basic window but I want to match it with my website design. I want to change design of prompt window.

  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.