File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Is noscript tag user frieldly enough? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Is noscript tag user frieldly enough?" Watch "Is noscript tag user frieldly enough?" New topic
Author

Is noscript tag user frieldly enough?

Namitha karupaiya
Ranch Hand

Joined: Mar 10, 2004
Posts: 89
I want to display a message when javaScript is disabled in the browser. I do not want to display the contents of my page (except that message) when javaScript is disabled.

I aware that I can use noscript tag to display a message if javaSCript is disabled, but how to hide the contents of the page when javaScript is disabled?

Thanks.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You would have to have JavaScript show it all and have the initial state hidden.

When you see stats saying 10% of surfers have JavaScript disbaled. A good portion of that traffic is spiders that are indexing sites for search engines. They do not follow JavaScript links and such. So if that matters to you, you need another solution.

Eric
Namitha karupaiya
Ranch Hand

Joined: Mar 10, 2004
Posts: 89
Is there any way to request the browser to reload another page if jacaScript is diasbled?

Thanks.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can only go the other way around, if JavaScript is enabled you can move to another page.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is noscript tag user frieldly enough?