Full version: jsB@nk » Snippet » Alert Function
URL: https://www.javascriptbank.com/alert-function.html
This JavaScript shows how to create a function with an alert and confirmation windows. A basic, important script.
Full version: jsB@nk » Snippet » Alert Function
URL: https://www.javascriptbank.com/alert-function.html
<script type="text/javascript"><!-- Begin/*Created by: Steeveeo :: http://www.freewebs.com/steeveeo3000/ */function confirmFunction() { alert("This message will confirm whether or not to perform a function"); if (confirm("Are you sure you want to activate the function?")) { functionAlert(); } else alert("Function cancelled."); { }}// End --></script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<script type="text/javascript"><!-- Beginfunction functionAlert() { alert("Your function here"); { }}// End --></script><form><input type="button" value="Confirm The Function" onClick="confirmFunction()"></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->