Newbie Newbie -4 years ago 110
HTML Question

How to include External Script using console?

I want to know ,
How to include External JavaScript into current page using developer console.

I am having static plain html/js i want to test it with several js libraries as well as css in it. without adding in

file or i am from remote machine.

so how do achieve it using Developer console?

Answer Source

You can try this to inject your script into HTML DOM

inject = document.createElement('script');
inject.src = "";
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download