This is an entire script, can anyone tell me exactly why it is not opening the new window please?
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" lang="en" xml:lang="en" >
<head>
<meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" />
<title>FunKaDeLic</title>
<link type="text/css" rel="stylesheet" href="funkadelic.css" />
<SCRIPT type="text/javascript" >
function openindex ()
{
var name=prompt("What is your name?","Write it here")
var OpenWindow=window.open("", "newwin",
"height=300,width=300");
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>")
OpenWindow.document.write
("Hello " +name+ " Here is your window!")
OpenWindow.document.write("</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR=green>")
OpenWindow.document.write("<CENTER>")
OpenWindow.document.write
("<font size=+1>New Window</font><P>")
OpenWindow.document.write
("<a href='' onClick='self.close()
'>This closes the window</a><p>")
OpenWindow.document.write("</CENTER>")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
}
</SCRIPT>
</head>
<body>
onLoad="openindex ()"
</body>
</html>
Bookmarks