programmatically click button problem

G

greg

Hi

I need to programmatically click imagebutton from javascript

so I write in a link navigate url

document.forms[0].nextBtn.fireEvent('onclick');

!!!!! it says nextBtn undefined
it is a web page not control
and when I do view source it is nextBtn !!!!

other input controls I see just fine like checkboxes etc


Help!!!
 
G

greg

Justin

you are the man
thanks
was getting nuts on this stuff

S. Justin Gengo said:
Greg,

Try:

document.getElementById('nextBtn').click();

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
greg said:
Hi

I need to programmatically click imagebutton from javascript

so I write in a link navigate url

document.forms[0].nextBtn.fireEvent('onclick');

!!!!! it says nextBtn undefined
it is a web page not control
and when I do view source it is nextBtn !!!!

other input controls I see just fine like checkboxes etc


Help!!!
 
G

Guest

if only you'd asked that question earlier....! :(

greg said:
Justin

you are the man
thanks
was getting nuts on this stuff

S. Justin Gengo said:
Greg,

Try:

document.getElementById('nextBtn').click();

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
greg said:
Hi

I need to programmatically click imagebutton from javascript

so I write in a link navigate url

document.forms[0].nextBtn.fireEvent('onclick');

!!!!! it says nextBtn undefined
it is a web page not control
and when I do view source it is nextBtn !!!!

other input controls I see just fine like checkboxes etc


Help!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top