Hello, can someone help me how to use this tag? I need to create a website that has the ability to check whether Javascript is enabled or not in user's browser. I've seen www.wowhead.com, but i just still can't figure out how to do something like that? Can someone pls guide me? I'm desperately need this for my final project. Thanks in advance
<noscript> tag is used to display some contents or error messages when browser's javascript is disable. Suppose you want to display an error message to the user then you can simply use the following code:
But I think it is not possible to under stand the server side running language to take the status of client. But in PHP, it is possible with some header functions. Check more about that on the PHP site.
Well you could do something like: document.write('<img src="jstest.php" width="0" />'); Code (javascript): And in jstest.php set a session or cookie saying that javascript is enabled.