Using JavaScript, I want to retrieve the content of the script files. These script files remain in local(in web page).
For example. In web page, there is a script,
<script src="tool.js"></script>
Latter, I want to get the content of tool.js
and process the retrieved result (like dump its content).
I have tried to use jQuery.getScript
. However, it tells me that Origin null is not allowed by Access-Control-Allow-Origin.