
There is lots of wiggle room without the confines of the JavaScript Console found in Firefox and Chrome.įirefox Scratchpad Runs in the Context of Active Tab Nothing exciting I know, but it gives you the idea as to the wonderful freedom you have for writing and executing blocks of JavaScript code.
JS SCRATCHPAD CODE
In the example below, I am executing a couple of lines of JavaScript code that determines the number of blog posts on my Orchard Blog Page and displays the count in an alert window. This allows you to execute code within the context of the web page, but the variables and code are sandboxed so they don't actually become global variables.

Unfortunately it doesn't have syntax highlighting, pretty formatting, line numbers and breakpoints, but you do have the freedom to write a nice chunk of JavaScript code and have that code interact with DOM Elements on the web page. Firefox Scratchpad - JavaScript and jQuery Development in Firefoxįirefox Scratchpad gives you a nice workspace to write and execute JavaScript and jQuery. Now normally I prefer the Chrome Developer Tools, but the JavaScript ScratchPad in Firefox is much more ideal for writing and executing JavaScript than the JavaScript Console in Chrome and even the JavaScript Console in Firebug. This allowed me to interact with the page elements as if the JavaScript code was running natively within the page. The easiest way to write the code was to load the web page in the Firefox browser and open up it's new JavaScript Scratchpad that allows writing, debugging and executing JavaScript and jQuery against any tabbed web page in the browser.


I was developing a new custom Orchard Module for a client last night that required custom jQuery and JavaScript code to run when the DOM loaded.
