JavaScript Interpreter Bookmarklet
Question: Can I have a bookmarklet with the JavaScript interpreter?
Answer:
Yes. In fact, some JS programmers find that a JavaScript interpreter bookmarklet is very useful.
Not only it allows to execute a line of JavaScript code on-the-fly -
it also helps you check the state of any variable in your code while viewing your HTML page.
Here it is - the
JavaScript interpreter bookmarklet.
- To get the JavaScript interpreter prompt, click on the above hyperlink.
- To check the state of a JS variable, enter the variable name.
- To execute a line of JS code, enter the code.
- To close the interpreter prompt, click Cancel in the prompt box.
- To add the JavaScript interpreter to your bookmarks, right-click on the hyperlink and choose
Add bookmark or Add to Favorites
(depending on your browser).
This bookmarklet has been tested with both NS4 and MSIE4.
JavaScripter.net.
Copyright
© 1999-2006, Alexei Kourbatov