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.
So use the below code in the Iframe Page.Bingo you have the result.
- <script type="text/javascript">
- if (top == self)
- alert('Not in an iframe');
- else
- alert('In an iframe');
- </script>
0 comments:
Post a Comment