Quote:
Originally Posted by roguebfl
I plug that into Chrome, it produced the prompt, but not the results.
|
Oops. Firefox was being too nice about my bad coding. Try this:
Code:
javascript:c=prompt('Powerstone%20Capacity:','');if(/\d+/.test(c)){d=document.open();d.write((10*c*c+40*c)*Math.pow(54/53,c)+20*c);d.close();}else{null};
Works in Firefox, Chrome, and Safari on my mac.