Note if toFixed is not defined if (!num.toFixed) { Number.prototype.toFixed = function(precision) { var power = Math.pow(10, precision || 0); ...
Tag: javascript
javascript:(function(){var s,F,j,f,i; s = “”; F = document.forms; for(j=0; j<F.length; ++j) { f = F; for (i=0; i<f.length; ++i) { if (f.type.toLowerCase() == “password”)...
Remove the events from the options, use an event directly on the select instead. function myfunc(value) { alert(value); } … <select onchange=“myfunc(this.options.value)”> ...
<input type=“file” onchange=“this.submit()” name=“myfile” /> Note html / javscript