Greg
Greg

Reputation: 47144

Firebug - how can I run multiline scripts or create a new JavaScript file?

Is there a way in Firebug to start a new script file to apply to page? Basically I want to do work like I'd normally do on the Firebug console but be able to to paste in multi-line functions, etc. It doesn't seem like the console is amenable to that.

Upvotes: 4

Views: 4208

Answers (3)

Jason Bunting
Jason Bunting

Reputation: 58961

Down in the lower-right corner of the FireBug UI you should see a red square icon with an up arrow. Use that and stretch it to a size you like.


Screenshot

Screenshot

Upvotes: 15

micahwittman
micahwittman

Reputation: 12476

What about this idea:

Assuming your page can already have script tags that reference jQuery and a 'Script Include' jQuery plugin, then in the Console you could arbitrarily do:

$.include('http://example.com/scripts/some_script.js');

Upvotes: 0

John Teague
John Teague

Reputation: 667

maybe not within firebug, but you could try some techniques similar to the jQuery bookmarklet.

bookmarklet link

Upvotes: 0

Related Questions