vorrei che all'accesso in una pagina si aprisse un pop up , come faccio?![]()
vorrei che all'accesso in una pagina si aprisse un pop up , come faccio?![]()
up!![]()
up!![]()
E DAJE MA NN SAPETE STA COSETTA??
<html>
<head>
<title>pagina</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body onLoad="MM_openBrWindow('tuo_popup.htm','','toolba r=yes,location=yes,status=yes,menubar=yes,scrollba rs=yes,resizable=yes,width=100,height=100')">
</body>
</html>
grazie e per chiuderlo con un timer?
ma nn si potrebbe fare una cosa del genere?
on.load
{
window.open("www.pagina.it","");
}
cioè, quando la pagina è carica apri il popup con dentro la pagina "www.pagina.it"
il popup nn deve essere resizable e senza barra laterale ...
grazie ^^
ho messo cosi ma come faccio a mettere il set.timeout?<script language="Javascript">
<!--
newwindow=window.open('help.html.htm', '', 'width=90,height=150,scrollbars=no,resizable=no')
window.opener=self
-->
</script>
nell' html del pop up metti:
<html>
<head>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
function closeWin(){
window.close()
}
function timer(){
timerID = setTimeout("closeWin()", 4000)
}
</SCRIPT>
la finesta si chiuderà frà 4 sec.
<script>
timer();
</script>
</body>
</html>
ah ok grazie