will noscript tag work

Discussion in 'HTML & Website Design' started by drcensor, Apr 29, 2013.

  1. #1
    I want to put Alexa script on a page, but don't want the image to show up on the page, so if I put the Alexa script in a noscript tag will the Alexa script still work and and count my visitors coming to my page?
     
    drcensor, Apr 29, 2013 IP
  2. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #2
    No. Code within a <noscript> block is only rendered if JavaScript is disabled. So browsers with JavaScript enabled will ignore any JavaScript in a <noscript> block.
     
    rainborick, Apr 29, 2013 IP
  3. nosvideo.com

    nosvideo.com Greenhorn Affiliate Manager

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    i usually use <noscript> to show visitors a message to allow JavaScript in there browser so they can the content
     
    nosvideo.com, Apr 29, 2013 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    My first question would be why do you want that malware garbage on a website in the first place? (I trust Alexa about as far as I could throw a PDP-8)

    Now that said, could you simply target the image with CSS, and absolute position it off the left side of the screen? left:-999em; good as always.
     
    deathshadow, Apr 30, 2013 IP