We can check if a page is loaded in Iframe or not using Javascript -- Why do we need this For me its Iframe APPS
So use the below code in the Iframe Page.Bingo you have the result.
  1. <script type="text/javascript">  
  2.     if (top == self)  
  3.         alert('Not in an iframe');  
  4.     else  
  5.         alert('In an iframe');  
  6. </script>  


0 comments:

Post a Comment