Search

1/26/2011

facebook noscript的作法

if js-disable UA browse to http://www.facebook.com/ will be directed to http://www.facebook.com/?_fb_noscript=1

if js-enable UA browse to http://www.facebook.com/?_fb_noscript=1 will be directed to http://www.facebook.com/

howto:

在http://www.facebook.com/?_fb_noscript=1 的javascript有這行是http://www.facebook.com/ 裡面沒有的
OnloadRegister(function (){window.location.href="http:\/\/www.facebook.com\/"})

同樣的在http://www.facebook.com/ 裡面有這一行是http://www.facebook.com/?_fb_noscript=1 裡面沒有的
<noscript> <meta http-equiv=refresh content="0; URL=/?_fb_noscript=1" /> </noscript>

沒有留言: