Opening and controlling a new popup window

we can assign a var to the window.open method and control the popup. but in order for it to work, remember to use to “opener” method or else it will fail in firefox.

for example,

var d = window.open('../popup/'+url,  'popup', 'width=1024, height=1024, scrollbars=1');
d.opener.location.reload(true);

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Sitecritic.net Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.