Javascript language

Prompt Box in JavaScript
Previous Home Next

A prompt box is often used if you want the user to input a value before entering a page.

Step 1. Written below code in your application

<script language="javascript">
function displayDate()
<html xmlns="">
<head runat="server">

    <form id="form1" runat="server">
    <button type="button" onclick="displayDate()">DisplayDate</button>

Step 2. Run the Application. Click on Button.

You Entered in Website

Previous Home Next