Javascript - only show html if its enabled

Soldato
Joined
12 Jun 2005
Posts
5,361
Hi there,

Without getting javascript to write the html, is there anyway to only show html if javascript is enabled...

...sorta the opposite of <noscript>

Thanks.
 
The way I do this is to hide certain elements with CSS, then use javascript to unhide them, that way if they don't have javascript, the element remains hidden.

So you still have to use javascript then to do it, because i may aswell just write the html with javascript, unless there is a specific advantage of doing it this way?
 
Back
Top Bottom