Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible to perform action upon page opening?

Status
Not open for further replies.

RebLazer

Programmer
Jun 7, 2002
438
US
I am trying to write some code that would page a person's beeper. Below is code that works - but the user has to click the button in order to submit it. (The beeper number appears in green and the numeric message to be displayed to the beeper appears in blue.)

[tt]<table>
<form action=&quot; method=&quot;POST&quot; name=&quot;SendNumericPage&quot;><input type=&quot;hidden&quot; name=&quot;SbId&quot; value=&quot;7638293659&quot;>
<input type=&quot;hidden&quot; name=&quot;SbMsg&quot; value=&quot;123456789&quot;><input type=&quot;submit&quot; name=&quot;sendit&quot; value=&quot;Click here to send page&quot;>
</form>
</table>[/tt]

Is it possible to remove the submit button altogether and have the beep be sent automatically upon opening of this HTML page?

Thanks,
RebLazer :)
Chicago
 
Could use the onLoad event;

<HTML>
<HEAD>
</HEAD>
<BODY onLoad=&quot;javascript:document.yourFormID.submit();&quot;>
<table>
<form id=&quot;yourFormID&quot; action=&quot; method=&quot;POST&quot;>
</form>
</table>
</BODY>
</HTML> &quot;did you just say Minkey?, yes that's what I said.&quot;

MrGreed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top