Skip to content Skip to sidebar Skip to footer

Get Content Of A External Script Included On Page

I have a script include on a page as following. Once the demo.js is loaded, I need

Solution 1:

Sadly no.

With pure JavaScript you can't get content of other JavaScript file without executing it.

Possible solutions:

EDIT: With JavaScript you can't get full script, but function like:

var funcsourcecode = functionname.toString();

Post a Comment for "Get Content Of A External Script Included On Page"