use strict:
function getYaddaYadda() {"use strict";
//Function goes here
}
When writing native JavaScript, it is good practice to declare strict mode which forces you to write cleaner more semantic code
Ancient Browser
You might want to make your script entirely invisible to really old browsers
<!--
function funky(){
alert("monkey");
}
//-->
<form>
<input type="button" value="push" onclick="funky()">
</form>
No comments:
Post a Comment