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,
asked Jan 27, 2011 at 6:19
jestges
3,74824 gold badges64 silver badges101 bronze badges
-
1What do you mean by "from a different page"? What's the relationship between the two pages?David Tang– David Tang2011年01月27日 06:22:17 +00:00Commented 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 javascriptjestges– jestges2011年01月27日 06:23:51 +00:00Commented Jan 27, 2011 at 6:23
1 Answer 1
You can use form.submit() method.
document.forms["myform"].submit();
answered Jan 27, 2011 at 6:21
Anuraj
19.7k7 gold badges61 silver badges84 bronze badges
Sign up to request clarification or add additional context in comments.
4 Comments
jestges
form.submit() wil call current form right? but i want to call different page submit button
jestges
actually that page contains submit button. I want to call that submit button click event. Is it possible?
Anuraj
Or you require something like this? stackoverflow.com/questions/133925/…
jestges
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
lang-js