Raju Posted March 17, 2015 Share Posted March 17, 2015 I can inject Javascript by _IEHeadInsertEventScript() function. But the code only runs when "onclick" or "oncontextmenu" event is fired. Is there any way to inject javascript/JQuery to any page and run immediately and automatically with or without _IEHeadInsertEventScript() function. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 17, 2015 Moderators Share Posted March 17, 2015 (edited) Eval or if your IE is less than IE11 ExecScript. The javascript is put in the DOM for that session, but if refreshed or navigated away, you'll obviously have to re-insert. Example: $goIEObject.document.parentWindow.Eval("alert('see');") Edit: I wrote an >extended library that shows some of the use, but the insert codes are hexed strings, just javascript functions used to get things done. Edited March 17, 2015 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Bert Posted March 17, 2015 Share Posted March 17, 2015 you could use greasemonkey The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now