You need to sign in to do that
Don't have an account?
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.