The URL became longer, because each cyrillic letter is represented with two bytes in UTF-8, so there are two %.. entities. window from parent window: (IE & Firefox). Even the document object (of the HTML DOM) is a property of the window object: window.opener.location = “schedule.php?id=1”; this also works fine. The returned reference can be used to access properties and methods of the new window as long as it complies with Same-origin policy security requirements.
Popup windows that were opened by my window, or a child of my window 2. In order for the parent to communicate with the chid, the parent should first save the handle of the child window (the return value from window.open() function). window.opener is not working in IE 11 in the child html where we are trying to access the parent page function like below. As my aim is to provide basic
If you are not familiar with window.open() method then you would be
Here the parent window is known as opener. There is a method called showModelessDialog() if you are interested in
Save Cancel By clicking the "Save" button you agree to our terms and conditions . The DOM tree: This method only traverse a single level up the DOM tree. you can get what is going on in the above code, in the new
have explained methods to access and share data between child browser windows and parent windows. I blog at https://ashokaon.tech, I will be writing about all things technology and coding. I am considering only IE and Firefox for this
- to send data to the parent window from child
The window.opener object can be used to access the HTML
I am going to mention
solutions for accomplishing this. If the window couldn't be opened, the returned value is instead null. to send data to the child window from parent window using the window handle got
yourself. As you can see, in showmodal.htm, the retval variable is assigned with the result of the window.showModalDialog() method call, and in the
specifies the size and appearance of the new window, this line of code can be
You can see the demo of this here. see http://msdn2.microsoft.com/en-us/library/ms536651(VS.85).aspx. But I can’t get the parent window url.