object expected error message
Posted: Sat Dec 03, 2011 1:43 pm
whats wrong in the following code at line 26 ??
it gives error message objects expected.
Code: Select all
<html>
<HTA:APPLICATION
APPLICATIONNAME="Simple HTA"
SYSMENU="yes">
<head>
<title>Simple HTA</title>
<style type="text/css">
body { background-color:#0099CC;}
p { font:bold 18px Arial, Helvetica, sans-serif;}
</style>
<style language="javascript" type="text/javascript">
window.resizeTo(640,480);
function validate()
{
RunScript();
}
function RunScript()
{
alert("form is okey");
}
</style>
</head>
<body>
<p>Simple HTA</p>
<form>
<input type="button" name="btnStrt" value="Start" onclick="validate()"/> //line 26
</form>
</body>
</html>