Saturday, November 27, 2010

About passing value from popup window (child window) to parent window


In this post I am going to write about a simple approach to improve user friendliness in  web site development.

Allowing the user to open a pop-up window to choose some data by doing search or any other activity will improve the user friendliness in comparing with forcing the user to go thro' many pages to achieve the same result.

The pop-up window (Child window) can be opened using window.open() method of javascript.

Any value entered by the user in the pop-up window can be passed to the main window(parent window) using a piece of javascript code.

The parent window is known as opener.  We can pass the value from child window to parent window by using opener.document object model.

You can refer this article for more details.



More Articles...
You can bookmark this blog for further reading, or you can subscribe to our blog feed.

No comments:

Search This Blog