I have a requirement to hit a page, run some JavaScript, and move on to another page. It's uncertain whether the user actually has JavaScript enabled, so I can't use JS to effectuate the move to the second page.

Here's what I've got:
Code:
<html> 
	<head> 
		<meta http-equiv='refresh' content='0;url=page2.html'>
	</head> 
	<body> 
		<script src="http://www.example.com/example.js"></script>
		<script>
		_xxx = "xxxxxxxxx";
		xxx();
		</script>
	</body> 
</html>
My question: will the JS run before the refresh to page2.html?

I tested this with an alert() in the script and it seemed to work fine. I just thought some of the W3C gurus out here might be able to give more authoritative answers.

Thanks.