Sign in to follow this  
Followers 0
DoomNewb

Clicking a Javascript Button

2 posts in this topic

Im trying to get this code to work, so that it presses the Sign In button for me

#include <IE.au3>  
$oIE=_IECreate("http://login.ijji.com/login.nhn?nextURL=http%3A//gunz.ijji.com/")  
$IEbutton=_IEGetObjByName($oIE,"javascript:void(loginClick());")  
_IEAction($IEbutton,"click")

Im pretty sure this part is wrong:

"javascript:void(loginClick());"

But I'm not sure what to put in that part.

DebugBar shows this for the button, if it helps

<A class="button org_big" href="javascript:void(loginClick());"><SPAN>Sign In</SPAN></A>

I've tried using the Help file and the search on this forum, but I can't figure it out.

Share this post


Link to post
Share on other sites



use this instead of your click event

$oForm = _IEFormGetObjByName ($oIE, "loginform")
_IEFormSubmit($oForm)

Share this post


Link to post
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
Sign in to follow this  
Followers 0