Some help please!

Results 1 to 2 of 2

Thread: Some help please!

  1. #1
    minnie Guest

    Default Some help please!

    *<BR>I have been working on this since two days...<BR><BR>I have a pop up window which closes when clicked on it. But..somehow it does not seem to work in NetScape.<BR>The popup window pops up but doesn&#039t close when clicked on it. In IE it works fine.<BR>I have the following code...<BR><BR>//MainWindow.asp<BR>&#060;HTML&#062;<BR>&#060;BODY&# 062;<BR>&#060;form method = "POST" id="frmname" name="frmname"&#062;<BR>&#060;input type="text" id=text1 name=text1 width=10 OnKeyPress="javascript:calpopup()"&#062;<BR><BR>&# 060;Script Language="javaScript"&#062;<BR>function calpopup(){<BR> <BR> window.open("../Calender/newwindow.asp?","calpopup","toolbar=0,location=0,s tatus=0,menubar=0,scrollbars=0,resizable=1,top=100 ,left=100,width=350,height=200");<BR> }<BR>&#060;/script&#062;<BR>&#060;/form&#062;<BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR><BR>//NewWindow.asp//<BR><BR>&#060;HTML&#062;<BR>&#060;BODY BGColor="Silver" alink="#526B84" vlink="#526B84" onClick="window.close ()";&#062;<BR>Welcome!to new window<BR>&#060;P&#062;*&#060;/P&#062;<BR><BR>&#060;/BODY&#062;<BR>&#060;/HTML&#062;<BR><BR>Any help would be appreciated!!

  2. #2
    John Weeflaar Guest

    Default RE: Some help please!

    Try this: Write the code within the &#060;Script&#062; ...&#060;/Script&#062;<BR>twice except for the first line. One is "javascript", the other<BR>is "javascript1.2". The "javascript1.2" code I think will be<BR>executed by Netscape version 4.0 and above ( I haven&#039t tried myself, it may or may not work). <BR>The "javascript" code will be executed by Internet Explorer.<BR><BR>&#060;Script Language="javaScript"&#062;<BR>function calpopup(){<BR>window.open("../Calender/newwindow.asp?","calpopup","toolbar=0,location=0,s tatus=0,menubar=0,scrollbars=0,resizable=1,top=100 ,left=100,width=350,height=200");<BR>}<BR>&#060;/Script&#062;<BR>&#060;Script Language="javaScript1.2"&#062;<BR>function calpopup(){<BR>window.open("../Calender/newwindow.asp?","calpopup","toolbar=0,location=0,s tatus=0,menubar=0,scrollbars=0,resizable=1,top=100 ,left=100,width=350,height=200");<BR>}<BR>&#060;/Script&#062;<BR><BR>Cheers,<BR><BR>John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •