Actually, the question I'm really looking for is -- if I have a piece of
functionality on my website -- say a popup window -- that occurs on a
certain page. I use javascript to open the window. If a user has a browser
that does not handle javascript or if a user has disabled javascript I want
to use alternate methods to popup the window (like Target="_NEW" for
example).
So I declare a javascript function at the very top of the page to popup the
window, but how do I know if that javascript function will be executable on
a particular users' browser. For now what I do is check if a user's browser
is less than IE 4.0 or Netscape 3.0 and if so, use the alternate link. But
if the user has Opera which does accept Javascript or if the user is using
Netscape 4.0 with JavaScript disabled, then I am out of luck.
Any more recommendations?
thanks,
J
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brent
Eades
Sent: Thursday, December 10, 1998 4:33 PM
To: [EMAIL PROTECTED]
Subject: Re: WC:>: Greetings
On 10 Dec 98, Luana M. Howard wrote:
> When you say, "how to tell," I assume you mean "how to tell which code to
> send to the browser." I can't speak for all Web developers, but I use:
>
> <SCRIPT LANGUAGE="JavaScript">
> <!--
> JavaScript code with some browser detection
> --//>
> </script>
> <noscript>
> No JavaScript code here just html
> </noscript>
This is as much as you'll ever need in most cases. The point of <noscript>
is to provide alternative content for Javascript-compatible browsers which
happen to have support for it turned off. It (rather obviously) has no
relevance for those few remaining browsers that don't understand
Javascript at all, because by definition they won't understand <noscript>
any more than they'll understand <script>. Which is why scripts should go
inside comment codes (as above), so that those browsers will just ignore
all the material inside the tags it doesn't understand. Theoretically :)
-----------
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.
---------------------------------------------------------------------
____________________________________________________________________
--------------------------------------------------------------------
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.
To get 500 Banner Ads for FREE
go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------