[logo]
Best viewed with a browser
released in the 21st Century

(but where possible the site
is lynx-friendly)
Copyright © 2005,
Bruno Andrighetto

Home  >  JavaScriptorium  >  Pseudo JavaScript Console

Pseudo JavaScript Console

Enter some JavaScript code to evaluate:
Examples:
// individual statements
alert(typeof (""+1))
alert(parseInt("1548")+1000)
alert(navigator.userAgent)
alert(document.URL)

// this whole snippet can be entered at once
var str = "This is a test";
alert(str.substr(1,3) + "tory");
alert(str.toUpperCase().indexOf("TEST"));
alert(str.replace(/i/g, "1"));
var wordsArray = str.split(" ");
alert("Found " + wordsArray.length + " words");


Pseudo JavaScript Console

Netscape has a handy feature called the JavaScript Console, which allows direct input of JavaScript statements displays any error messages. This is very valuable for debugging and experimentation.

This page attempts to provide at least part of that functionality in Internet Explorer and other non-Netscape browsers. Just use the form above to type in some code and try running it.

Warning: be careful what you type. Some JavaScript code can cause problems for browsers.


Last updated: October 26, 2003

Home  >  JavaScriptorium  >  Pseudo JavaScript Console
1