Hi
I'm doing an introductory javascript exercise on the msdn beginner's website. I'm using visual studio 2010, and here is the code.
<html>
<head>
<title>My page</title>
<script type="text/javascript" language="javascript">
<!--
function say(text)
{
alert(text);
}
say("The page is loading!");
//-->
</script>
</head>
<body>
<noscript>
JavaScript is turned off.
</noscript>
<input type="button" value="Click me!" onclick="say('Thanks for clicking!')" />
</body>
</html>
Well what happens in IE and Chrome, which is, I'm pretty sure the expected behaviour is this:
I right click on the document in visual studio and select "view in browser".
The browser displayes with a little message box with a button on it saying, "The page is loading!".
When I click this button the message box disappears and a button appears in the top left corner of the page. When I click on this button, a new message box appears that says, "Thanks for clicking!"
Well that's it, and that happens for CHrome and IE, but for firefox, when I change firefox to the default browser so I can use the "View in Browser" functionality of VS 2010, it works the first time. but every other time I try to do it in Firefox it just immediately goes to the page with the button in the top left-hand corner. I.e. the first message box with the "The page is loading!" message doesn't show.
Does anybody have an idea why I would get this different behaviour in Firefox?
David.