Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto Click Button
#1
What's Up?

OK, So for my latest project, Im needing to automaticly click a button once the page has finished loading, I did find some code around google but none of those scripts worked, I did change the name tag.

I think perhaps its running the javascript before the button has loading but im not sure.

Anyone Know?

Thanks Bye.
[Image: Scorpion-Sig3.png]
Reply
#2
This code submits the form when the user presses the <div>

Code:
<html>
<head>
<script language="javascript" type="text/javascript">
function submitForm() {
    document.myForm.submit();
}
</script>
</head>
<body>
<form name="myForm" action="index.php" method="post">
<textarea onkeyup="editText(this);"></textarea>
<input type="submit" name="Submit" value="Submit" />
</form>

<div onmouseup="submitForm();">Submit with JavaScript</div>
</body>
</html>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Adsense Click Fraud?? Question?? ImFocuzz 5 1,641 06-06-2011, 07:40 PM
Last Post: Black Demon
  WIP: transition : 2 themes in single click [ premium] envira 5 1,134 06-02-2011, 12:35 PM
Last Post: envira
  What File Would I Modify For New Button On My Main Page schneweis 2 803 12-23-2010, 10:20 PM
Last Post: Bourd
  Submit Button ElephantShoe 3 813 11-10-2010, 02:53 AM
Last Post: Malmoc
  Auto Submisson Scorpion 12 3,536 11-10-2009, 01:03 PM
Last Post: Scorpion

Forum Jump:


Users browsing this thread: 1 Guest(s)