Forum Moderators: open

Message Too Old, No Replies

fullscreen f11 actual proper

been searching

         

brixone

8:44 am on Apr 23, 2010 (gmt 0)

10+ Year Member



hi guys,

i am going nuts after trying many examples for this.. the simulation for F11

i am using html, where a link should open the new window, proper Full screen.

couldn't find it in this forum, am i searching for the wrong thing?

google: "javascript f11 fullscreen"

brixone

8:47 am on Apr 23, 2010 (gmt 0)

10+ Year Member



example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>PAGE</title>

<script>
/* <snipped email addy> */
function resize() {
if (window.resizeTo) {
ie = (document.all) ? 1:0;
wW = (ie) ? document.body.clientWidth: window.innerWidth;
wH = (ie) ? document.body.clientHeight: window.innerHeight;
aW = screen.availWidth
aH = screen.availHeight-50;
if (wW < aW || wH < aH) {
window.resizeTo(aW,aH);
window.moveTo(0,0)
}
}
}
</script>

</head>
<body>
<body onLoad="window.open(window.location.href,'newwin','fullscreen')">

content

</body>
</html>

[edited by: whoisgregg at 6:33 pm (utc) on Apr 23, 2010]
[edit reason] Whoops, no URLs please. See TOS [webmasterworld.com] :) [/edit]

whoisgregg

6:35 pm on Apr 23, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, brixone!

What are you trying to accomplish which that script doesn't already do?

brixone

9:31 am on Apr 24, 2010 (gmt 0)

10+ Year Member



cheers!

it only resizes the window.

i need to load a new window that has no borders, no menu, ie., the fullscreen result of pressing F11.. any ideas?

whoisgregg

5:14 pm on Apr 24, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That is not possible using JavaScript/HTML. The only fullscreen experience available is through Flash, but there are quite a few restrictions to prevent people from using it to confuse users into giving away their passwords or other sensitive information.

brixone

1:51 am on Apr 25, 2010 (gmt 0)

10+ Year Member



ah, thanks a lot for the reply. that's cleared up what i was thinking!