Tuesday, March 20, 2012

Request the parent window to open a URL from an iframe with different domains

Sometime we are developing something within an iframe, but we want the parent window to refresh or open a URL. The code to use is:
top.location.href = URL;

1 comment:

  1. great blog for coders and people who are new to programming! i will send the link of this to all my friends at school because i find this very cool and informative . thanks for sharing!!!