Prompt Dialog Box using java script.

Ranjeet_8
Posted by Ranjeet_8 under JavaScript category on | Points: 40 | Views : 1249
Java Script.

<script type="text/javascript" language="javascript">
function promptFunction() {
var fVal = prompt("Enter your first name :: ", "first name goes here");
alert("Your first name is : " + fVal);
}
</script>

Add this code on .ASPX page.

<asp:Button ID="btnpromptFunction" runat="server" Text="Prompt Dialog Box" OnClientClick="return promptFunction();" />

Comments or Responses

Login to post response