Works on ie, not firefox

I’ve cleared the cache in firefox 21.0, but the following excerpt does not display anything in firefox, but works as expected in ie.
(The script is to remind my wife to turn off the printer when she completes her session.)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<title>Special Event Recap lessons</title>
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<meta name="description" content="Lesson Summary Worksheet" />
	<meta name="robots" content="noindex, nofollow" />
	<link rel="shortcut icon" href="..." />
	<link rel="stylesheet" type="text/css" href="..." media="screen" />
	    <link rel="stylesheet" type="text/css" href="..." media="screen" />
  <script language="javascript">
		function reminder() {
			alert("Please remember to shut off printer");
		}
	</script>
</head>
<body onunload="reminder()">
...

Thoughts?

regards,

grNadpa

I suggest you validate your HTML as the first step. That will tell you where all the HTML errors are - such as language=“javascript” - so that you can correct them.

Thank you. Figured it was something simple. And, you are right, I should have re-validated the code I pulled from the tutorial. I didn’t. And justly deserve stricture.

However, replacing “language” with “type”, while it did render the w3c html validator to declare “This document was successfully checked as XHTML 1.0 Strict!”, did not resolve my problem: firefox still does not fire the alert on closing the window.

(Verified through ctrl-u that the code was the most recent.)

At this point, I don’t need the aggravation, so will live without it.

Thank you all for taking a look at it.