Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JAVA SCRIPT fullscreen with no scrollbars and so on

JAVA SCRIPT fullscreen with no scrollbars and so on

Scheduled Pinned Locked Moved Web Development
javatoolstutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nelo Angelo
    wrote on last edited by
    #1

    Does anyone know how to open a window in fullscreen with no scrollbars and so on just a plain blank screen that will be used to display pics? Stay well and ejoy life to the max

    T 1 Reply Last reply
    0
    • N Nelo Angelo

      Does anyone know how to open a window in fullscreen with no scrollbars and so on just a plain blank screen that will be used to display pics? Stay well and ejoy life to the max

      T Offline
      T Offline
      The_Server
      wrote on last edited by
      #2

      You cant The workers and I tried for days to find a way and NOTHING!!! But... we came up with this resault:

      function OpenWndFullScreenMode()
      {
      window.open("popup.html","","top=<code>-30</code>,left=<code>-10</code>,width=<code>1024+10+25</code>,
      height=<code>768+30+10</code>,directories,location,menubar,resizeable,scrollbars,toolbar");
      // this code works only on resoultion of 1024-768
      // the 'top=-30' will put the window title above the screen
      // the -10 will put the window border outside the screen
      // the +25 will put the scrollbars outside the screen
      // SO............
      // You have the efect of a full screen window without scrollbars
      // NOTE: if u use the fullscreen flag in the open() function
      // You <code>can NOT</code> remove the scroll bars
      }

      Hope I helped you... I not sure about the specific '-10' '+25' and '+30' numbers but you got the idea. Thanks for your help in closing the window. =-=-=-=-=-=-=- The Server :rose:

      T 1 Reply Last reply
      0
      • T The_Server

        You cant The workers and I tried for days to find a way and NOTHING!!! But... we came up with this resault:

        function OpenWndFullScreenMode()
        {
        window.open("popup.html","","top=<code>-30</code>,left=<code>-10</code>,width=<code>1024+10+25</code>,
        height=<code>768+30+10</code>,directories,location,menubar,resizeable,scrollbars,toolbar");
        // this code works only on resoultion of 1024-768
        // the 'top=-30' will put the window title above the screen
        // the -10 will put the window border outside the screen
        // the +25 will put the scrollbars outside the screen
        // SO............
        // You have the efect of a full screen window without scrollbars
        // NOTE: if u use the fullscreen flag in the open() function
        // You <code>can NOT</code> remove the scroll bars
        }

        Hope I helped you... I not sure about the specific '-10' '+25' and '+30' numbers but you got the idea. Thanks for your help in closing the window. =-=-=-=-=-=-=- The Server :rose:

        T Offline
        T Offline
        theJazzyBrain
        wrote on last edited by
        #3

        In addition you can get the width and height of the screen like this: var screenWidth = window.screen.width; var screenHeight = window.screen.height; in order to make your code more generic and it will work for any resolution......:-D:-D |---------------| | theJazzyBrain  | |---------------|

        B 1 Reply Last reply
        0
        • T theJazzyBrain

          In addition you can get the width and height of the screen like this: var screenWidth = window.screen.width; var screenHeight = window.screen.height; in order to make your code more generic and it will work for any resolution......:-D:-D |---------------| | theJazzyBrain  | |---------------|

          B Offline
          B Offline
          Bjoern Graf
          wrote on last edited by
          #4

          This method is bad: http://blog.tom.me.uk/2003/07/09/why_using_javascript_to_open_fullscreen_windows_is_stupid.php[^].

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups