Restrict additional pagehead in sharepoint popup window -
hi have added additionalpagehead in sharepoint run javascript functions show texts. working fine in sharepoint pages working in sharepoint popup window also. how can restrict popup windows.
try use code inside placeholderadditionalpagehead placeholder:
<script type="text/javascript"> var isdlg = (/[\\?&]isdlg=([^&#]*)/.test(window.location.href)); if (!isdlg) { // javascript code ... } </script>
Comments
Post a Comment