Table of Contents

About

Within the scratchpad (shift+f4), you can write, run, and examine the results of code that interacts with the web page.

Management

Scratchpad Execute

Run

The selected code of the whole code

Inspect

The Inspect option executes the code just like the Run option; however, after the code returns, an object inspector is opened to let you examine the returned value.

Firefox Scratchpad Inspect

Display

REPL: The Display option executes the selected code, then inserts the result directly into your Scratchpad editor window as a comment.

1+1
/*
2
*/

Reload And Run

See Execute menu. It first reloads the page, then executes the code when the page's “load” event fires.