Hi All ,
I need to parse JavaScript content , I am reading this content from a file now I need to identify the events associated with the JavaScript objects. Can someone tell me possible approach to achieve that.
Thanks in Advance.
Vinay
Hi All ,
I need to parse JavaScript content , I am reading this content from a file now I need to identify the events associated with the JavaScript objects. Can someone tell me possible approach to achieve that.
Thanks in Advance.
Vinay
If you want to parse the contents of a JS file:
<script src="script.js" type="application/javascript"></script>
Or in Javascript:
var inject = document.createElement("script");
inject.type = "application/javascript";
inject.src = "script.js";
(document.body || document.documentElement).appendChild(inject);