its to make you type your name and what color you want your name to be typed in , so can you please help me and tell whats wrong ?
--------------------------------------
<head>
<title>color and name</title>
<!--
<script type = "text/javascript">
var name;
var color;
name = window.prompt( "Please enter your name" );
color = window.prompt( "Enter your choise"
"(1=red,2=blue)", "1" );
if ( color == "1" )
document.writeln( "<h1 style = \"color: red\">" );
document.writeln("welcome to our website" name "enjoy!");
else;
document.writeln( "<h1 style = \"color: blue">");
document.writlen("welcome to our website" name "enjoy");
// -->
</script>
</head>
Tags: