[nycphp-talk] OT: Javascript - Opening a new window, but the window name is getting lost with Facebook.com
John Campbell
jcampbell1 at gmail.com
Wed Sep 29 05:49:59 EDT 2010
> If my theory is
> wrong about facebook.com, can someone explain why they might be doing this
> and what advantage is there to Facebook.com being more difficult than the
> other websites? :-)
Facebook, like many other sites, uses frame breaking code. Facebook's
first line of javascript is:
if(top != self) { ... }
Facebook does not want their site embedded as an iframe or as a child
window to your site. Letting other sites control the window is a
security issue for facebook, and they want to control the experience
on their own site. Sorry, there is nothing you can do.
Regards,
John Campbell
More information about the talk
mailing list