When I run this in Chrome (ver 2), it doesn't return the string, but it works in Firefox (ver 3). Why is this?
<html>
<head>
<script type=text/javascript>
function disp_prompt() {
var name=prompt(Please enter your name,Harry Potter);
if (name!=null && name!=) {
document.write(Hello + name + ! How are you today?);
}
}
</script>
</head>
<body>
<input type=button onclick=disp_prompt() value=Display a prompt box />
</body>
</html>