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: 2018/01/21 00:18 (external edit)
 
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