function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gbu.varungbu.varun 

Putting paremeters in Parent window

Hi All,

 

I am using some javascript.

I am opening a VF page as pop-up. I have some requirement.

When a user close pop-up parent should be refreshed and a parameter should be pass to parent window.

This is my Jscript

 

        <script>
            window.onunload = window.onbeforeunload = refreshParent;
            function refreshParent(){
                    var v = document.getElementById('pgId:frmId:CheckinID');                  
                    window.opener.location.href= window.opener.location.href+"?checkinDate="+v.value+"";                   
            }
        </script>

 

Problem is pop-up is refreshing many time and it put check-inDate many times in url.

Can anyone help me please to update check-in time of parent window.