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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exciting a Method from JScript

Status
Not open for further replies.

Jhankins

Programmer
Jun 17, 2003
46
AU
How do you run a method from JScript I can do it when I put a button on the webpage but how do you just run a method without having to use a button

Thanks

Works below with a button but trying to run a method call RefreshData

<SCRIPT language="JScript">
function starttimer()
{
window.setTimeout("Refresh();",60000);

}
function Refresh()
{
document.Form1.btnUpdate.click();

}
</SCRIPT>
 
If you just need to execute a function after the page loads, include it into the <body> tag:
Code:
<body onload="starttimer()">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top