#1 Abrir ventana desde Meta TAG
Hola a to2, tengo un scripts que me permite abrir una ventana con un tamaño en particular y sin barras y sin menu, es muy buen script, aqui se los paso si alguno desea usarlo.....


<script language="javascript" type="text/javascript">
<!--

/*
New windows
*/

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math .floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Mat h.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(scr een.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPositi on+',left='+LeftPosition+',scrollbars='+scroll+',l ocation=no,directories=no,status=no,menubar=no,too lbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
pero trabaja con el evento ONCLICK asociado al tag <A href....>


<a href="index.html" onclick="NewWindow(this.href,'main','800','450','n o','center');return false" onfocus="this.blur()">ingresar</a>
pero mi necesidad es poder hacer con el meta tag del head que permite cumplido un tiempo disparar la apertura de una venta lo haga pero usando ese script...

es así:

<META HTTP-EQUIV="Refresh" CONTENT="15; URL=http://www.eldominioquesea.com.ar/inicio.html">


alguna idea para aplicar ?.
gracias desde ya...
+
 
0
Me gusta
 
| Más