The computer I am currently on:
Windows XP SP2
Internet Explorer 7
That's all you really need to know.
I use Javascript a lot, but recently, I have traveled over into the more application programming, and less web programming. I opened my father's laptop, and typed in a pretty *long* Javascript. I saved as javescript.html and tryed to open it in IE7. It has the thing at the top saying "Script wasn't opened" so I clicked "Run script" and it disappeared, but all the page had on it was nothing. I tried it in a bunch of ways, all with no luck. So, I went over to W3SCHOOLS and copied one of their codes:
<html>
<body>
<script type="text/javascript">
//If the time is less than 10,
//you will get a "Good morning" greeting.
//Otherwise you will get a "Good day" greeting.var d = new Date()
var time = d.getHours()
if (time < 10)
{
document.write("Good morning!")
}
else
{
document.write("Good day!")
}
</script>
</body>
</html>
I tried to run it, still, a blank page. Then, I tried this script (way more basic):
<html>
<body>
<script type="text/javascript">
<!--
document.write("Testing...")
//-->
</script>
</body>
</html>
Still, a blank page. Is there some error that I am just NOT seeing, or is it IE7? I have no idea if it's IE, because my dad doesn't want Firefox on this computer. Once I get my Linux box back, I'll try it on that.
Any help would be appreciated! I want to get back to Javascript!
-- Alex