Hopefully, someone can help me with this perplexing problem. And i know that one should not design their site necessarily based on js and i have the content and structure if js is off, but i just want to make sure so that everything that can be displayed with the js is displayed if js in on.
I hope i didn't confuse anybody. And please reply with any questions, comments, concerns, or solutions
Thanks in advance and Regards,
The one exception to noscript being useless would be wrapping it around some CSS in the head of the page. You can't do that with HTML 4 since noscript is currently only valid in the body. HTML 5 has expansded the use of noscript to allow it in the head and will presumably disallow its use in the body as a future amendment to the draft.
Thanks for all the help. I am going to do some research in the noscript tags?
I know this isnt the html forums but
Do u guys have any advice to go along with using them?
Or are there any noteable html5 changes in noscript tag?
Thanks for all your help and Regards,
document.getElementById('script').style.display = 'none';
69+ downloads doesn't mean 69+ computers with noScript installed. I bet half of downoad ar just for testing this addon or same user downloaded twice and so on... noScript doesn't mean js turned off.
Except for the 69+ million people using Firefox and NoScript.
And that is just considering ONE scenario.
Agree with JesseDPate. Anyway, you always shoud provide a fallback scenario in case js is turn off. But this is not a major problem. Few peoples have js off.
If JS is on, then the JS will run. If JS is off, then it will not run. The only thing you can do for people without JS on is add a few <noscript> tags with alternate content.
Just remember that <noscript> is only valid in the <head> with HTML 5. In HTML 4 it is only allowed in the <body> (where it is useless).
The best place to put script tags is immediately before the </body> tag where they will not slow the loading of the rest of the page.
i just realised something..
My script does not work in IE because it uses css3 so is there a way that one could disable js if the browser is detected as IE using code?
Thank you guys for your help.
As i might have mentioned before, i made a carosel for my site so that the intro, 360 view, and some pictures are rotated as content for the home.
In other words.
Slide 1: no js needed
if js is disabled then everything past this does not happen.
Slide 2:js needed
Slide 3: no js needed and is not essential content.
Regarding what felgall said here:
HTML 4 since noscript is currently only valid in the body. HTML 5 has expansded the use of noscript to allow it in the head
Then the way to make your document html5 is by changing the doctype correct?
Also, I agree i have not seen noscript is a a while, that is why i forgot about it, but I swear i have seen it in html4 documents. Anyway, I too concur that it should only be used in the head where all <script> and <link< tags ought to be.
Thanks for all your help, again!
P.S. for anyone reading this thread: I found this useful regarding the noscript tag