0

I am creating a web application. How do I change the browser from normal mode to fullscreen mode (like F11), but I don't want to open a popup for this. I want to convert the same window to fullscreen mode.

The requirement is: there is a button on the page, and it's a toggle button for changing normal mode to fullscreen mode and fullscreen mode to normal mode

Buzinas
  • 11,597
  • 2
  • 36
  • 58
Chirag
  • 375
  • 4
  • 30
  • 2
    and...? where's the question? – dantuch Sep 26 '11 at 05:41
  • An answer to a very similar question can be found here: http://stackoverflow.com/questions/1125084/how-to-make-in-javascript-full-screen-windows-stretching-all-over-the-screen – Antoine Sep 26 '11 at 05:50

1 Answers1

1

Try this javascript code below.

<script>
function fullScreenMode(url) {
window.open(url, '', 'fullscreen=yes, scrollbars=auto');
}

</script>
sharmila
  • 1,493
  • 5
  • 23
  • 42
  • The question states "i don't want to open any popup for this". This opens a popup. – icktoofay Sep 26 '11 at 05:49
  • i dot'n want to open a any popup for this, perform operation on same window – Chirag Sep 26 '11 at 05:53
  • I hope this helps.. function openWindow() { window.open("", "_self", "") window.close(); window.open("url", "page", "toolbars=no,location=no,resizable=no") } – sharmila Sep 26 '11 at 06:13