Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Update parent window after closing the window opened by window.open()

Imagine we have a webpage which has a text field to let user enter a date. Usually, we may create a calendar window to ask the user to pick one date from the calendar window, when the date is picked, the calendar window will close and the date picked will be put into the text field. This way involves the window.open() method in JavaScript, and we may think how the opened window knows its parent window and then updates the parent window. I give a simple demo on this.We have two pages, on is the page which will trigger to open a new browser window, the other one is the page displayed in the open...

8,283 0       UPDATE WINDOW.OPEN JAVASCRIPT RETURN VALUE