Posted By

Reportme on 10/21/11


Tagged

javascript facebook


Versions (?)

Redirect to SRC, when IFRAME is loaded directly


 / Published in: JavaScript
 

  1. <script type="text/javascript">
  2. var url = 'YOUR_FACEBOOK_FAN_PAGE_URL'
  3. if(top === self) {
  4. top.location.href = url;
  5. }
  6. </script>

Report this snippet  

You need to login to post a comment.