Jump to content

Execute js within internet explorer


Recommended Posts

I am having a bit of a hard time wrapping my head around this one..

I am trying to execute javascript out of an already loaded page..

#include <IE.au3>
$oIE = _IEAttach ("http://localhost/list.php - Microsoft Internet Explorer")
$oIEDoc = _IEDocGetObj($oIE)
$oIEDoc.parentwindow.setTimeout('show_alert()', 0)

However this does not work, The error I am getting is Variable must be of type "Object"

What am I missing here..?

Is this failing to attach to the window? or can this not be done, and a new window must be loaded?

Any help would be appreciated, thanks.

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...