Coding Help Needed For Popup Window

I use the following javascript function to create popup windows

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width – w) /4;
var wint = (screen.height – h) /2 ;
winprops = ‘height=’+h+’,width=’+w+’,top=’+wint+’,left=’+winl+’,scrollbars=’+scroll+’,resizable=1, menubar=no, location=yes’
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

I need to create a popup window which has a location-bar which is editable. It means that the url of the popup window should not only be visible but also editable. The user should be able to change the url and navigate to a different page which should open in the same popup.

The standard behaviour of the location-bar is that it is visible or not visible. If visible it always seems to be uneditable and I don’t know how to fix this.

Leave a Reply

Your email address will not be published. Required fields are marked *