Jump to content

IE.au3 and bookmarklet


supergg02
 Share

Recommended Posts

As bookmarklet technique in witch you can "inject" a javascript code in a given web page (ie just put the js code in IE url and hit OK buttom :sorcerer: ), i tryed to do same thing with the great DaleHohm IE.au3 libarary but i have a strange result ( the js code was excuted but it load an other ie window ;) )

Here is my code:

$o_IE=_IEAttach("http://www.google.com","url") ; google page was loaded before executing code

$url="java script:document.forms.f.q.value=autoit;"

$o_IE.navigate($url) ; here we inject js code just like bookmarklet

but the result is that ie load an empty page with the value "autoit" :o:geek:

so my question is how we can inject and execute a js script in a given web page ?

thinks for any help

Edited by supergg02
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...