Internet, Networking, & Security > Browsers How to Use Firefox Browser's Scratchpad Write and test JavaScript in real time By Scott Orgera Scott Orgera Writer Scott Orgera is a former Lifewire writer covering tech since 2007. He has 25+ years' experience as a programmer and QA leader, and holds several Microsoft certifications including MCSE, MCP+I, and MOUS. He is also A+ certified. lifewire's editorial guidelines Updated on December 2, 2020 Browsers Firefox Chrome Safari Microsoft Trending Videos Close this video player What to Know Scratchpad is no longer available. As an alternative, use Mozilla Firefox's Web Console. In Firefox, go to Tools > Web Developer > Web Console. Next, to access multi-line editing, use the Ctrl+B keyboard shortcut (Cmd+B on a Mac) > enter code. Scratchpad was removed with the launch of Firefox 72, but this article explains how to use a suitable alternative for testing JavaScript code. Using Firefox's Web Console Editor Mode While Scratchpad is no longer available, Mozilla did introduce a Web Console editor mode with Firefox 71+. This is a suitable alternative for writing and testing multi-line JavaScript. Here's how to access it. Open Tools > Web Developer > Web Console. You can also access the web console via the keyboard shortcut CTRL+SHIFT+K. The console appears at the bottom of the screen and shows the current web page's code. Enter the multi-line editing mode by clicking the arrows on the lower left side of the console. You can also access multi-line editing via the keyboard shortcut Ctrl + B (Cmd + B on macOS). Type your code into the editor. Use Enter to add new lines, or use CTRL+Enter to run them. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit