<HTML> <HEAD> <TITLE>window.prompt() Method</TITLE> <SCRIPT LANGUAGE="JavaScript"> function populateTable() { var howMany = prompt("Fill in table for how many factors?","") if (howMany != null && howMany != "") { alert("Filling the table for " + howMany) } } </SCRIPT> </HEAD> <BODY> <FORM> <!-- other statements that display and populate a large table --> <INPUT TYPE="button" NAME="fill" VALUE="Fill Table..." onClick="populateTable()"> </FORM> </BODY> </HTML>
Related Scripts with Example Source Code in same category :