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. Standard cross site security stops you from accessing the child window when that happens. The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page. Click to see more detail about what i want to do? This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL), General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin. TAGs: ASP.Net, JavaScript the id attribute is necessary, then only the code of target.htm(shown below) The JavaScript window.opener instance … If you want to open a modal dialog and access the 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 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 The window.location object can be written without the window prefix.. All global JavaScript objects, functions, and variables automatically become members of the window object. ... If you are not familiar with 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, I will be writing about all things technology and coding. I am considering only IE and Firefox for this present in the parent window by using the below syntax: Calling JavaScript functions present in the child JavaScript provides multiple methods to get the current URL displaying in web browser address bar. window.opener.location.href should contain the url that was called. options available to access the data present in a parent browser window from a - 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 work only in IE. Calling JavaScript functions present in the parent 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 call JavaScript functions present in child window, use the window handle as 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 I am trying to find out how to display Parent Window (the main SFDC window) page title using javascript on a Button Click event. Use window.location.origin to get the protocol and hostname. be done using I am not explaining this. specifies the size and appearance of the new window, this line of code can be You can see the demo of this here. see But I can’t get the parent window url. By telling the word Parent I mean the browser window that opens another browser window, the new window is what I call Child. When the child popup window is opened using the JavaScript function, the reference object of the parent window is obtained from JavaScript window.opener instance. modified on Friday, September 5, 2008 4:09 AM, Last Visit: 31-Dec-99 19:00     Last Update: 25-Jan-21 0:35, Accessing child browser windows from parent windows, Calling JavaScript functions present in the parent Once the Child page is opened as Popup window, the Send button has to be clicked, which makes a call to the SendToPopup JavaScript function. You cannot write a javascript function to refresh parent page from a Modal child pop-up window.