MAXIMIZAR LA VENTANA

Daniel
12 de Diciembre del 2005
Bueeenas, necesito saber si hay algun Java Script que me sirva, para que cuando entro a mi página, la web se coloque automaticamente como si presionaran F11, en donde la ventana se maximiza... Si lo hay, me ayudan :D.... GRACIAS!!!!!!!!!!!!!

Keller
12 de Diciembre del 2005
<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>

rsalvadores
12 de Diciembre del 2005
Yo conozco este, es VisualBasic, pero es lo unico que he visto igual a F11.

Te mando un ejemplo:

<html>
<head>
<title>Fullscreen</title>
<script language="VBScript">
Option Explicit
Dim apps
Dim win
Set apps = createobject("shell.application")
For Each win in apps.Windows
If typename(win.Document) = "HTMLDocument" Then
if win.Document.title = self.document.title then
rem self.TheaterMode=true
win.TheaterMode=True
end if
End If
Next
</script>
</head>
<body>
<h1>FullScreen</h1>
</body>
</html>

rsalvadores

Daniel
12 de Diciembre del 2005
Woaw, mil gracias!!!!!!!, me sirvio :D

oscar
12 de Diciembre del 2005
Como lo has conseguido? A mi no me rulan estos scripts.
Gracias