Hi there
I am very, very new to Javascript, so this might sound like a dumb question, but….!!
I have this code for a popup window:-
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width – w) / 2;
var wint = (screen.height – h) / 2;
winprops = ”height=”+h+”,width=”+w+”,top=”+wint+”,left=”+winl+”,scrollbars=”+scroll+”,resizable”
win = window.open(mypage, myname, winprops,)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// End –>
</script>
This is activated when the user clicks on a link which relates to a plain html page. My problem is that I want to control the size of the popup, but every time I add ‘height = x’ or change the parameters, it doesn’t seem to work…
Can anyone help me to change this, or is there something I need to add tot he html file?
If possible I would like it to just size itself to the size of the page every time…
Any help would be greatly appreciated!
Cheers
geezerbird