I have <!DOCTYPE html>
at the top of my page and what the page is suppose to do is allow the user to click anywhere on the page, and then redirect to another URL.
It works when I remove <!DOCTYPE html
but I would like to keep it in the page
here is the code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
BODY.enterPage{
cursor:hand;
}
</style>
<script>
function goto(){
location.href = "http://www.google.com"
}
</script>
</head>
<body class="enterPage" onclick="goto();">
Your Content
</body>
</html>
why does this happen?