This Yet Another Web Calculator uses the Javascript eval() function to evaluate whatever you put in the in window. Any valid JavaScript code works, whether it's 1+3 or Math.pow(10,13)-1 (you can also leave off the "Math.") or even navigator.userAgent or even, in Netscape Navigator's implementation of Liveconnect, java.lang.System.getProperty("java.version") (these examples also show that expressions can appear as part of the URL "command line"). WebCalc uses window.onerror() to catch errors. Click here for further help, which will appear in the console window below. WebCalc can use JavaScript "include" files; until I get around to properly documenting this, here's an example.

Feel free to reuse this little example, but please keep my name, email and URL below intact. Thanks!

Andrew Schulman (