E
earl
How can I check if a browser supports javascript ?
How can I check if a browser supports javascript ?
Kris said:It gets executed.
earl said:What I actually meant, wrote the orginal question without actually
thinking it through, I have a javascript menu system on my website, I'd
like the webpage to check whether the user thats browsing the webpages
actually has support for javascript and if he\she does then use the
javascript system otherwise use standard html menu system. Something like
this I guess : if javascript then
do this
else
do that
What I actually meant, wrote the orginal question without actually thinking
it through, I have a javascript menu system on my website, I'd like the
webpage to check whether the user thats browsing the webpages actually has
support for javascript and if he\she does then use the javascript system
otherwise use standard html menu system. Something like this I guess :
if javascript then
do this
else
do that
earl said:I have a javascript menu system on my website
, I'd
like the webpage to check whether the user thats browsing the webpages
actually has support for javascript and if he\she does then use the
javascript system otherwise use standard html menu system. Something like
this I guess : if javascript then
do this
else
do that
Isofarro said:earl wrote:[...] Something like
this I guess : if javascript then
do this
else
do that
Structure it this way:
present the standard html menu system
if javascript
enhance menu.
Eric said:Isofarro said:earl wrote:[...] Something like
this I guess : if javascript then
do this
else
do that
Structure it this way:
present the standard html menu system
if javascript
enhance menu.
I think HTML provides[0] a quite simple way to do what the OP wants.
[0] <http://www.w3.org/TR/html401/interact/scripts.html#edef-NOSCRIPT>
Of dear, they are usually more trouble then they are worth...
A well written system would start with normal HTML which works by itself,
then CSS would be added to enhance the presentation, then a layer of
interactivity could be added using JavaScript to manipulate the *existing*
HTML.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.