View Full Version : Need help with Click()

06-19-2009, 05:38 AM
I'm new to JS and i'm trying to write a script that will do something like this:

If on page #1
//click button1
else if on page#2
//click button2
//click button3

To click a button i use:

It works fine as long as i know the form name and the button name like clicking the search button in google would be:

But some forms don't have a name. All they have is something like:
<form action="Link" method="post" onsubmit="this.submit.disabled=true;">
and the button is:
<input name="submit" type="submit" onload="this.disabled=false;" value="OK">

How can i click such a button?

Philip M
06-19-2009, 07:22 AM

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

06-19-2009, 07:25 AM
It worked. Thanks.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum