最近用apache构建了一个服务器,用perl写的CGI,程序中间用javascript希望弹出一个网页,当这个平台在本机的window XP下运行到javascript代码时马上就弹出网页,但是把平台转移到fedora 8.0 下时,当CGI执行到javascript代码时却不会马上就弹出网页,只有等到整个CGI程序执行完了之后才会弹出网页,不知有没有哪位大侠遇到相似问题?因为解决这个问题对我非常重要也非常紧迫,希望各位能鼎力相助。 
下面是CGI程序中间与javascript希望弹出网页功能的相关代码, 
print"Content-type:text/html\n\n"; 
print < <END; 
<HTML> <HEAD> 
<TITLE>Prediction </TITLE> 
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> 
</HEAD> <BODY BGCOLOR="#F5F5F5"> <form name=loading> 
<div align="center"> 
<table border=5 cellpadding=5 cellspacing=5 width="80%" height="80%" bgcolor="#A9C0E4"> 
<tr> 
<TD align="center" valign="top"> 
<p> <FONT color="000000" face="Arial"> <BR>  </FONT> </p> 
<p>  </p> 
<p>  </p> 
<p> <input type=text name=chart size=46 style="font-family:Arial; font-weight:bolder; color:black; background-color:#EAEAEA; padding:0px; border-style:none;"> 
<br> 
<input name=percent size=46 style="font-family:Arial; background-color:#A9C0E4;text-align:center; border-width:medium; border-style:none; font-weight:700"> <b> <script> 
window.location.href='http://www.cbi.seu.edu.cn/DBindR/submitted.htm'; 
</script> </b> </p> 
</TD> 
</tr> 
</table> 
</div> 
</FORM> </BODY> 
</HTML> END