What I'm looking to do is not write JavaScript in the source of the website. But use an addon/extension to type JavaScript in a browser console and see the results in the browser. Kind of like JSFiddle, but for your own sites.
What I'm looking to do is not write JavaScript in the source of the website. But use an addon/extension to type JavaScript in a browser console and see the results in the browser. Kind of like JSFiddle, but for your own sites.
Share Improve this question asked Dec 12, 2014 at 22:59 6ft Dan6ft Dan 2,4551 gold badge35 silver badges46 bronze badges 2- how about the developed console? – Pointy Commented Dec 12, 2014 at 23:00
- Are you on the "Console" tab in the developer tools? If so, you type things in at the very bottom. – apsillers Commented Dec 12, 2014 at 23:02
2 Answers
Reset to default 3You can use the developer tools in Firefox (available in essentially all browsers at this point).
In Firefox, the shortcut to open them is CTRL+SHIFT+K. Then go to the Console tab, and you can type JavaScript.
I have found 3 ways to do it. https://developer.mozilla/en-US/docs/Tools/Keyboard_shortcuts is the official source.
Answer #1
@Mike gave a good answer with CTRL-SHIFT-K which brings up a console. The console permits a one line mand to be run. (It's so small it's barely noticeable.)
Answer #2 (winner)
This is part of the Firebug addon. @apsillers had originally mented CTRL-SHIFT-C from there you click Console and then a tiny side arrow on the right opens up a side entry for JavaScript with a run mand. This is exactly like JSFiddle so apsillers has given the correct answer which he has then removed.
Answer #3 (awesome)
And one I discovered from the Mozilla documentation which is AWESOME is SHIFT-F4. This opens a SMART JavaScript editor, known as the JavaScript Scratchpad, window with a run button, auto-plete features, and allows you to save your work.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745561245a4633119.html
评论列表(0条)