Question

3
Replies
845
Views
Close popover
Nipun Khokhar (Khnb38)
Huntington Bank

Huntington Bank
US
Khnb38 Member since 2016 15 posts
Huntington Bank
Posted: May 17, 2018
Last activity: August 7, 2018
Closed

In Non-IE browser, window.opener.document.getElementById is returing null

Hello,

On the OOTB button, we have a JS that uses window.open to point to an external URL. After using window.open, we are trying to refresh the parent window for which we are retrieving the element of the parent window using window.opener.document.getElementById(id'). However, in FF/Chrome, this is returning "null". Using 6.3 SP1

<script>

window.open('<%=PDFURL%>','_self','' );

var reloadElement = window.opener.document.getElementById("RefreshAfterPrint");

alert(reloadElement); ------- This is returning null in FF/Chrome only. IE returns the object.
window.opener.pega.u.d.reloadSection(reloadElement, "", "", false, true, "-1", false);

</script>

***Turned off future commenting per Original Poster's Request***

Low-Code App Development User Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.