Hi this is my first question in this site.
My problem is-I have created a jsp where in i have given one link to call another jsp (already created by some one) in a popup window.On saving some details in child window i want those values to be accessed in my parent window.But i dont have the permission to change the code of child window jsp. can anyone help me...? Thanks, the code i am using to open a popup is as follows.
function popUp(url){
alert("inside popup");
window.open(url,'newWindow','width=750,height=400,left=150,top=100,toolbar=no,resizable=true');
}
Provided the url
does not violate the same origin policy , you can access the window properties via the return value of window.open()
, eg
var windowRef = window.open(url, ...);
var someElement = windowRef.document.getElementById("element-id");
var someJavaScriptVar = windowRef.someVar;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.