Javascript Scriptlets

Check if a page is loaded in an iframe using Javascript

<script type="text/javascript">
var isInIFrame = (window.location != window.parent.location) ? true : false;
</script>
 
 javascriptscriptlet.txt · Last modified: 2011/09/05 20:19 by bpienig
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Driven by DokuWiki