Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup problem in Netscape 2

Status
Not open for further replies.

dafirsdon

Technical User
Dec 20, 2000
3
US
I am having a little trouble in Netscape. I have made a dynamic chat button. The button when pressed opens a popup box that lets you chat with a live operator. I have reworked the code to include a location.replace tag that updates the original page with the button to an identical page but with a tracking code in it. The script works fine in IE but when I try it in Netscape the popup opens but then the page is replaced above the popup menu so you have to close the window to get to the popup menu. Here is the code I used. Is there a way to make the popup menu stay in front of the replaced original window in Netscape?

Code:
<HTML><HEAD><TITLE>chat button</TITLE>

<SCRIPT language=JavaScript>
<!--
function MM_openBrWindow(theURL,winName,features) {//v2.0
window.open(theURL,winName,features);}
//-->
</SCRIPT>
</HEAD>
<BODY bgColor=#ffffff>
<CENTER><A href=&quot;javascript:document.location.replace('my URL')&quot;
onclick=&quot;MM_openBrWindow('my URL','livedemo','resizable=yes,width=400,height=400')&quot;><IMG
border=0 src=&quot;[URL unfurl="true"]http://myimage.gif&quot;></A>[/URL]
<SCRIPT language=&quot;JavaScript src=&quot; 
chatbutton.jsp?poolname='poolname&amp;refreshsecs=&quot;10&quot;&quot;'>
</SCRIPT>
</CENTER></BODY></HTML>

Any help you could give me would be greatly appreciated.
 
i dont think this will help at all, but why do you have an extra double quote after the 10?

<SCRIPT language=&quot;JavaScript src=&quot;
chatbutton.jsp?poolname='poolname&amp;refreshsecs=&quot;10&quot;&quot;'>
</SCRIPT>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top