![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/08/2002, 15:24
|
![Avatar de bakanzipp](http://static.forosdelweb.com/customavatars/avatar10453_1.gif) | | | Fecha de Ingreso: noviembre-2001 Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 23 años, 2 meses Puntos: 0 | |
Re: Open Window pasando Querystring con mis preferen? a verrrrrrrrrrrrrr....
Código:
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,'_blank','toolbar=0,location=0,close=yes,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height='+h+',width='+w+',top='+wint+',left='+winl+'');
if (parseInt(navigator.appVersion) >= 4)
{
win.window.focus();
}
}
function JsAceptar()
{
var tu_variable="<%=rs("pregunta")%>";
NewWindow('pagina.asp?variable='+tu_variable','name','450','200','no');
}
y tu llamada
<a href= "#" onclick="Javascript :JsAceptar()> |