Why won't this script work with AOL browser? (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Guest -> Why won't this script work with AOL browser? (4/4/2001 17:02:00)

I am using the following script to click on a thumbnail picture and have a new window open the full picture. It works fine in IE and Netscape, but will not work in AOL's browser. I realize AOL is a POS and most of you hate it, but I would like to support it on my site. Any ideas or other scripts that will accomplish the same thing would be greatly appreciated.


<SCRIPT LANGUAGE="JavaScript">
<!--
function OpenNewWindow(cPicture,nWidth,nHeight,cMessage,nBorder)
{
NewWindow=window.open("","NewOne","HEIGHT="+nHeight+",WIDTH="+nWidth+",top=50,left=100,scrollbars=no,resizable=no");
NewWindow.document.write ("<HTML><HEAD><TITLE>");
NewWindow.document.write ("</TITLE></HEAD>");
NewWindow.document.write ("<BODY BGCOLOR='black'>");
NewWindow.document.write ("<P ALIGN=CENTER>");
NewWindow.document.write ("<FONT FACE='Arial' SIZE='+2' COLOR='White'><B>");
NewWindow.document.write (cMessage);
NewWindow.document.write ("</B></FONT>");
NewWindow.document.write ("<IMG SRC=");
NewWindow.document.write (cPicture);
NewWindow.document.write (">");
NewWindow.document.write ("</P>");
NewWindow.document.write ("<center><FORM><INPUT TYPE='button' VALUE='Close This Window' onClick='self.close()'>");
NewWindow.document.write ("</FORM></CENTER></BODY></HTML>");
NewWindow.document.write ("</BODY></HTML>");
NewWindow.document.close();
return false;
}

//-->

</script>





Dixiedi -> RE: Why won't this script work with AOL browser? (4/5/2001 20:52:00)

I have never used AOL and don't know much about it, but...the latest versions are IE based. However AOL is a constictive service, maybe that has something to do with it. I really don't know.
However, I have a suggestion that may just fix your problem.


Try a simpler popup script.
Or
Make your links open in a new window by altering your links to

code:
 <a href="images/pic2.gif" target="_blank">whatever is clicked here</a>


JavaScript is very handy, but often used when it really isn't even needed.

Again, I really don't know very much about AOL, it's not so much their browser but their restricted or forced behavior. I won't get into that, it only creates arguments and those who would defend AOL usually do not have a lot of experience with other ISPs or browsers.





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875