// Basic Confirm box with Javascript
if (confirm("Do you want to continue?")) {
alert("Yes, you do!");
}
else {
alert("Nah, you don't..");
}
Paste this to external.js -file and call it from HTML page like this
<head>
<script language="javascript" type="text/javascript" src="external.js">
</script>
</head>
language="javascript" is not recommended anymore by W3C. Use only type="text/javascript".
Ei kommentteja:
Lähetä kommentti