MAXIMIZAR LA VENTANA
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!!!!!!!!!!!!!
<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>
<!--
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>
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
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