Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

IE 7 not displaying prompt

$
0
0
I have IE 7 and I want to run this script however the browser never shows the prompt. It appears that the script is completely ignored. If I run this on Chrome it works just fine.

Code:

<html>
<head>
<title>Game Time</title>
<body bgcolor=black>
<center>
<script language="JavaScript">
var name = prompt("Please enter your name:", "");
if(name != "")
{
  document.write("<title>Game Time - (Connected)</title>");
  document.write("<body bgcolor=black>");
  document.write("<applet code='Games.class' align=right width=610 height=296 name=client>");
  document.write("<param name=username value=" + name + ">");
  document.write("</applet>");
}
else
{
  document.write("<body bgcolor=black>");
  document.write("<h2><font color=lightblue>We're sorry you dont want to play games</h2>");
  document.write("<h5>(Change your mind? Click on Refresh or Reload)</h5>");
}

</script>
</center>
</body>
</html>


Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>