thanks to every one who taught me that function is case sensitive but now I don’t get any errors and nothing happens here is my code
the HTA:
<HTML>
<HEAD>
<TITLE>James Tech Calculator</TITLE>
<HTA:APPLICATION ID="James Tech" APPLICATIONNAME="APP" SCROLL="no" SINGLEINSTANCE="yes">
</HEAD>
<BODY>
<SCRIPT TYPE="text/javascript" SRC=Calc.JS>
SetSize();
</SCRIPT>
</BODY>
</HTML>
and the JavaScript:
function SetSize()
{
window.resizeTo(400,400);
}
torazaburo is right, the quickest way to fix your problem is to have two
SCRIPTtags.However, I wouldn’t inline the script in the body. I would put it in an event, such as
onload, for example: