Jump to content
Sign in to follow this  

Can I click a Javascript object?

Recommended Posts



I am trying to automate the clicking or activation of a javascript object. It's a login "button" and when you click on it it posts your enter details via javascript. This is the code when I right click and "copy link address":

javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))

This is what I get from Firebug

<a id="main_ArticleControl_lnkLogin" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))'></a>

Anyone have any clue whether it's actually possible or how to do it? Any browser will do...


Edited by mikesmith

Share this post

Link to post
Share on other sites

Maybe you can call the JS-Function manually?

You can call it like this:

$sCall = 'javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))'
_IENavigate($oIE, $sCall)


Edited by chesstiger
  • Like 1

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