Jump to content
xisto Community
Sign in to follow this  
suicide1405241470

buttonclicking

Recommended Posts

Hi, I currently have a button on a web page (a sign in button) I just wondered is there any html code that I could add on to the end of the web page which would force the click, or mimic a user clicking on that sign in button. (yes I am writting an auto sign in thingy) in OO programming we use Button.click; to mimic this.. is there such thing in html? this is the code i get highlighted if i click on the sign in button at design time <input name=".save" type="submit" value="Sign In" class=buttonwhite></td> thanks

Share this post


Link to post
Share on other sites

something to try.<html><script>function submitonload() {document.autosubmit.Submit();}</script><body onLoad="submitonload();"><form name="autosubmit"><input type="submit" value="Sign In"></form></body></html>this is quick way, you may want to add <script language="javascript...">and some other inputs on form :) o and dont forget form action" :)

Share this post


Link to post
Share on other sites

A better example of this would be:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html lang="en"><head><title>A sign-in form (automatic)</title><script type="text/javascript">function signIn() {     document.getElementById('logInForm').submit();}</script></head><body onload="signIn();"><form action="theServerSidePage.php" method="post" id="logInForm"><div><input type="submit" value="Sign In"></div></form></body></html>

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  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.