Author Topic: Saw this javascript snippet on a website today  (Read 602 times)

micah

  • A real person, on the Internet.
  • Jackass In Charge
  • Posts: 7247
  • Karma: +57/-55
  • Truth cannot contradict truth.
    • micahj.com
Saw this javascript snippet on a website today
« on: April 26, 2012, 05:04:05 PM »
Code: [Select]
document.write('<noscript><a href="'+noscriptHref+'><img scr="'+noscriptSrc+'></a></noscript>');
 :rofl2:

Can anyone think of a valid reason to do this? It just seems so idiotic but there has to be a reason someone wrote their code that way, right? :dunno:
"I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.  I use it to look at pictures of cats and get in arguments with strangers."

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14443
  • Karma: +72/-789
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: Saw this javascript snippet on a website today
« Reply #1 on: April 26, 2012, 11:12:09 PM »
Doesn't make any sense to me.