var x=2; /*Here x acts as integer. */
var x="Mitesh"; /*Here x acts as string */.
//This code is inside script tag
//Your code here
//To call the above function you use the code below on Html
<button name="submit" value="Submit" onClick="mitesh_function_name()"/>
i) alert("pop up to user");
This code will give an alert box to the user saying "pop to user".
ii) prompt("Enter number");
This code is used to get the input from the user. So, the user will provide the number. It increases interactivity with user.
iii) confirm("Do you want to continue?");
A confirm box is often used if you want the user to verify or accept something. When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed. If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.
For more on Sql or software development India visit NevonProjects.com