Tuesday, April 26th, 2005

JavaScript Shell for Browsers

Category: JavaScript

Found an interesting JavaScript Shell: A command-line interface for JavaScript and DOM.


  • You can enter statements and expressions at the same prompt.
  • The result of each non-void statement or expression is shown.
  • User-defined variables.
    • b = document.body
  • User-defined functions.
    • function f() { return 5; }
  • JavaScript error messages are shown in red.
  • Previous statements and expressions are available through Up and Down arrow keys.
  • Tab completion.
  • Multiline input (Shift+Enter to insert a line break).
  • If the shell is opened using a bookmarklet, JavaScript typed into the shell runs in the context of the original window.
  • Works well in Firefox, mostly works in Opera 8 and in IE 6 for Windows.

Posted by Dion Almaer at 1:13 am

3.7 rating from 14 votes


Comments feed

The tab stuff there is especially nifty. I love autocompletion. The exec() method in javascript makes it fairly easy to do stuff like that.

I just wish that it moved the cursor to the end of the line when you hit the up arrow key to get the previous entry.

Comment by Stephen — April 26, 2005

In case you’re interested, I made some modifications to the Javascript Shell bookmarklet, allowing it to run in IE.
The auto-completion in IE still has a problem: it lists some but not all the possible completions.

More info on my post: Javascript Shell bookmarklet for IE

Comment by Julien Couvreur — April 20, 2006

I came across another JavaScript shell over here http://www.gnucitizen.org/projects/attackapi/

Comment by dany — September 1, 2006

Natural skin is a great beauty factor. Beauty is in the eye of the beholder… a little help from nature wont hurt either. Natural skin care products for a beautiful you ladies

Comment by natural skin care beauty — October 25, 2007

Leave a comment

You must be logged in to post a comment.