Tuesday, April 26th, 2005
JavaScript Shell for Browsers
>Found an interesting JavaScript Shell: A command-line interface for JavaScript and DOM.
Features
- 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.








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.
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
I came across another JavaScript shell over here http://www.gnucitizen.org/projects/attackapi/
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