Forum Moderators: open
<!--
var win= null;
function NewWindow(mypage,myname,w,h,scroll){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars='+scroll+',';
settings +='resizable=yes';
win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
//-->
<a href="http://www.mysite.org/gallery/images/The-Monorail.jpg" onclick="NewWindow(this.href,'name','800','600','yes');return false"><img src="3d_gallery/support_images/gallery_thumbs/mono_rail.jpg" border="0"></a>
am I missing something here? as far as I know this is about as generic a new window script as you can get, so what is the issue?
what is happening is when you press the link the new window launches in the size specified, but instead of the image loading into the page, my index page loads instead....
Any help you can give would be really helpful, thanx in advance
PD..