var newwindow; function createPop (url, name) { newwindow=window.open (url,name,'width=560,height=340,toolbar=0,menubar=0,location=0'); if (window.focus) {newwindow.focus ()} } Better approach will be showing both in a single page in two different iFrames or Divs. The popup webform should have web form controls like textbox, labels, button to save the new edits, etc. I can show the popup on my local laptop without any difficulties. name A name of the new window. Source: http://www.nigraphic.com/blog/java-script/how-open-new-window-popup-center-screen function PopupCenter(pageURL, title,w,h) { Facebook use the following algorithm to position their login popup window: function PopupCenter(url, title, w, h) { After completion of the operation, it has to return to the main window i.e.