On 20 Nov 98, John Stewart wrote:
> Your suggestion didn't completely "break" the MSIE; the overlapping
> pop-up layer doesn't show and no javascript errors are encountered. It
> does work like I wanted in Netscape and without the document.write(), it
> works fine in MSIE.
>
> Will a browser type test provide a switch to execute the JavaScript if
> true (for Netscape) or execute the html code for MSIE???
Yep, a conditional function would work here: test for the presence of NS;
if found, excute the document.write statement; if not, ignore it.
// tests for any ol' version of Netscape
var isNav = (navigator.appName == "Netscape")
function doSomething() {
if (isNav) {
blah blah
}
}
Should work, anyway :)
-----------
Brent Eades, Almonte, Ontario
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Town of Almonte site: http://www.almonte.com/
Business site: http://www.federalweb.com
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------