View Full Version : Open new browser window

Finland Blue
12-12-2005, 07:33 PM
I want to have a link on one of my web pages to open up a small box with some additional information.

I want to be able to place the box where I want it but I can't work out how to do this.

I have so far done the following :

<a href="tes.htm" target="_blank" onMouseClick="MM_openBrWindow('','','scrollbars=ye s,width=600,height=500')">View Hotel

Can anyone help with the positioning - top left is where I want it.


12-13-2005, 08:23 AM
javascript function...in <head> tags

var popup;

function tmt_winOpen(u,id,f,df){
eval(id+"=window.open('"+u+"','"+id+"','"+f+"')"); eval(id+".focus()");}
else if(df){eval(id+".focus()");}
else{eval(id+"=window.open('"+u+"','"+id+"','"+f+" ')");eval(id+".focus()");}

use the link code below and change the left and top value for window position.
turn values where set to Yes to NO to see what they do and to see if you want them on or off

<a href="#" onclick="tmt_winOpen('Connection.php','popup','wid th=750,height=550,left=50,top=50,
toolbar=yes,menubar=yes,location=yes,scrollbars=ye s,
status=yes,resizable=yes,directories=yes,copyhisto ry=yes',1)">click this link</a>

Finland Blue
12-13-2005, 09:28 AM
Great - thanks again David