30
rated 0 times
[
35]
[
5]
/ answers: 1 / hits: 155925
/ 11 Years ago, sat, january 11, 2014, 12:00:00
I need the button with the ID of clickButton to be automatically clicked or activated just by someone loading the page:
<html>
<head>
</head>
<body>
<center>
<form method=post action=http://web.com/>
<input type='hidden' value=test id=chatbox name='content' />
<!-- The Button -->
<input id=submitButton class=button name=accept type=submit value=Send/>
</form>
</center>
</body>
</html>
What I have tried:
<html>
<head>
<script type=text/javascript>
//In here I would use several Javascript codes,
//including all the ones I have been given
//here
</script>
</head>
<body>
<center>
<form method=post action=http://web.com/>
<input type='hidden' value=test id=chatbox name='content' />
<!-- The Button -->
<input id=submitButton class=button name=accept type=submit value=Send/>
</form>
</center>
</body>
</html>
Also if I wanted a javascript code to repeat it self, what command would I use?
Thank you for your help in advance.
More From » html