471,886 Members | 1,144 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,886 software developers and data experts.

F11 Keyboard Code Via Javascript Not Blocked By Browser Pop-Up Blocker- Possible?

My question is simple and I have not seen an answer so far having surfed the web endlessly.

I run a Kids Flash Games Website:

Some of the games require Full Screen View.
I do not expect players arriving at my Website to hit the F11 Keyboard - most of them will not do so.

I want to make their life easier by writing adequate code instead which will load my Website in FULL SCREEN VIEW.

The harshness of the browser pop up blocker prevents my javascript code from using the following code:

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. <!--
  3. function popup(url)
  4. {
  5.  params  = 'width='+screen.width;
  6.  params += ', height='+screen.height;
  7.  params += ', top=0, left=0'
  8.  params += ', fullscreen=yes';
  10.  newwin=window.open(url,'windowname4', params);
  11.  if (window.focus) {newwin.focus()}
  12.  return false;
  13. }
  14. // -->
  15. </script>
  17. <a href="javascript: void(0)"
  18.    onclick="popup('http://www.doron-zur.com/')">Fullscreen popup window
  19. </a>
Is there an expert amongst you people of the Bytes Forum who can write the F11 Keyboard code instead - which I can place inside my Website's Home Page and thus make life easier for my Website's visitors?
Thank you all.

Doron Zur.
Nov 16 '08 #1
1 8379
16,027 Expert Mod 8TB
fullscreen is not supported in most browsers. See Window functionality features (window.open()) (lower down for fullscreen).

To avoid this problem, inform the user in a FAQ or a help link how they can increase the size of the browser and how they can enable pop-ups.
Nov 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by dave yan | last post: by
9 posts views Thread by Bill M. | last post: by
26 posts views Thread by Raffi | last post: by
3 posts views Thread by Jachu | last post: by
7 posts views Thread by rob c | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.