Luceus Posted May 1, 2007 Posted May 1, 2007 Hello! I have some questions. Could you help me to find the answer on it? 1. How to add some events on internet explorer browser? Like - onreload page. When onreload is fired, AutoIT script should do sompe operations with page; 2. How to add some event to <a> tag? The event like onclick. I tried following: $link.setAttribute ("onclick", "java script: alert('asdf'), but it isn't working. 3. How to add the line '<script language="Javascript"></script>' to the loading page? The script should be executed. Thanx in advance.
DaleHohm Posted May 1, 2007 Posted May 1, 2007 You may be using IE.au3, but you don't say. Suggest you look at it. 1) see ObjEvent in the helpfile, search for examples in the forum 2) $link.onclick = "alert('Hi');" 3) see _IEDocWriteHTML for one way to do this, _IEDocInsertHTML for another Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
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