0

Hi I've an html page with submit button. I want to call that submit button event froma a different page using javascript.

is it possible? Can some one give me any example. I'm searching for it from hours.

thank you,

2
  • 1
    What do you mean by "from a different page"? What's the relationship between the two pages? Commented Jan 27, 2011 at 6:22
  • i mean just i want to pass credential to my authentication page (third party) and want to get response by using javascript Commented Jan 27, 2011 at 6:23

1 Answer 1

1

You can use form.submit() method.

document.forms["myform"].submit();
Sign up to request clarification or add additional context in comments.

4 Comments

form.submit() wil call current form right? but i want to call different page submit button
actually that page contains submit button. I want to call that submit button click event. Is it possible?
Or you require something like this? stackoverflow.com/questions/133925/…
no actually that is a third party authentication page. Instead of going there and validating just i want to pass credentials from my page and trying to get respoinse. Hope you got it. And it is not a popup window just it is a site

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.