Click to See Complete Forum and Search --> : Thanks for any Help!


_LOBO_
06-18-2003, 09:29 AM
HI, and TNX for any help
This is my problem, I made a script to launch a POP UP window, but when I lauch other window this new windows is inside of the first pop up.
I need to be able to put target="_blank" in the script but I try evrything and I can't get this work any idea why?

script-----

<head>

<STYLE TYPE=text/css>
A.menulink {
width: 150px;
text-decoration: none;
font-family:arial;
font-size:10px;
color: #D2232A;
BORDER: none;
border: solid 1px #FFFFFF;
}

A.menulink:hover {
border: solid 1px #CC0000;
background-color:#ffffff;
}
</STYLE>


function open_window2(votre_page)
{
var hauteur_popup2=370;
var H = (screen.height - hauteur_popup2) / 2;
var largeur_popup2=280;
var L = (screen.width - largeur_popup2) / 2;
pop_up2 = window.open(votre_page,"Popup","status=NO,scrollbars=no,resizable=yes,height="+hauteur_popup2+",width="+largeur_popup2+",top="+H+",left="+L);
}
</head>

<body >
<A HREF="#" onClick="open_window2('biografias.htm');" class=menulink >Biographies of the Master Instructors</A>
</body >

Lucky Punch
06-18-2003, 09:57 AM
Try to make the window name variable like this

<SCRIPT language="Javascript">
var i=1;
function open_window2(votre_page)
{

var hauteur_popup2=370;
var H = (screen.height - hauteur_popup2) / 2;
var largeur_popup2=280;
var L = (screen.width - largeur_popup2) / 2;
pop_up2 = window.open(votre_page,"POPUP"+i,"status=YES,scrollbars=no,resizable=yes,height="+hauteur_popup2+",width="+largeur_popup2+",top="+H+",left="+L);
i++;
}
</SCRIPT>

hope it helps
Lucky

_LOBO_
06-18-2003, 10:01 AM
Thank YOU!, it works!!!!!!!
:D