I cant get this to work the book is too cut and dry please help.
Code:
<!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">
<head>
<title>Two Functions</title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<script type="text/javascript">
/* <![CDATA[ */
function printMessage(first_message) {
document.write("<p>" + first_message + "</p>");
}
function return_message() {
return "<p>This message was returned from
a function.</p>");
/* ]]> */
</script>
</head>
<body>
<script type="text/javascript">
/* <![CDATA[ */
printMessage("This message was printed
by a function.");
var return_value = return_message();
document.write(return_value);
/*]]> */
</script>
</body>
</html>
its very simple but i cant figure out where im going wrong