Web Analytics Made Easy -
StatCounter Fullisize window - CodingForum

Announcement

Collapse
No announcement yet.

Fullisize window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fullisize window

    Hi, I´m new to javascript and need help to add to the following script the control of the bars on a browser.

    <SCRIPT language="javascript">
    top.window.moveTo(0,0);
    top.window.resizeTo(screen.availWidth,screen.availHeight);
    </SCRIPT>

  • #2
    Like so?
    Code:
    <SCRIPT language="javascript">
    [color=firebrick]function maxWindow() {[/color]
      top.window.moveTo(0,0);
      top.window.resizeTo(screen.availWidth,screen.availHeight);
    [color=firebrick]}[/color]
    </SCRIPT>
    
    .....
    
    [color=firebrick]<a href="#" onClick="maxWindow()">Full Screen</a>[/color]

    Comment


    • #3
      I think tommi1 meant how to hide the menu bars, address bar and tool bars. If so, this can't be done in the parent window. It can only be done in a spawned window (opened by window.open command).
      Glenn
      vBulletin Mods That Rock!

      Comment


      • #4
        Thank you for your help, I should have explain this better. you are right glenngv I only wanted to open a new page with a link, not a new window, but if that´s not possible I´ll have to use the open.window command.

        Comment


        • #5
          ok, i should probably be posting this in a new topic, but i'm here, and its small, and theres an example, so.. here it is.

          that code started <SCRIPT language="javascript">
          i always start mine with <script>
          is that bad?

          Comment

          Working...
          X