Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load javascript via Firebug console

How can I load a javascript file via Firebug console ?

This would be useful in development, so I don't have to modify the html code to load the script.

like image 808
Lydon Ch Avatar asked Jun 10 '10 05:06

Lydon Ch


1 Answers

var script = document.createElement("script"); script.src = "http://whatever.com/js/my/script.js"; document.body.appendChild(script); 
like image 128
Justin Johnson Avatar answered Oct 02 '22 13:10

Justin Johnson