Jump to content
Sign in to follow this  
DoomNewb

Clicking a Javascript Button

Recommended Posts

DoomNewb

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
rejectpenguin

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.