<noscript>

Discussion in 'JavaScript' started by fr33d0m, Aug 3, 2007.

  1. #1
    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
     
    fr33d0m, Aug 3, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  3. saurabhj

    saurabhj Banned

    Messages:
    3,459
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <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:

     
    saurabhj, Aug 3, 2007 IP
  4. ivenms

    ivenms Peon

    Messages:
    334
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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.
     
    ivenms, Aug 3, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    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.
     
    nico_swd, Aug 4, 2007 IP