Thursday, September 22, 2011

Javascript: Detect if inside iframe

Simple javascript untuk detect samaada page berada didalam iframe.

if(top != self) {
     alert('your inside frame');
}

No comments: