suicide1405241470 0 Report post Posted September 7, 2004 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
OrbitPoints 0 Report post Posted September 9, 2004 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
FirefoxRocks 0 Report post Posted July 26, 2008 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