Resizing a Web Page?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bobj

    Resizing a Web Page?

    The following will resize a web page on opening
    when put in the head section of the web page.

    <script language="JavaS cript">
    <!--
    window.moveTo (150, 75);
    window.resizeTo (700, 600);
    //-->
    </script>

    If I want to remove the scrollbars, status bar, tool bar,
    menu bar, etc., how do I include that?

    Thanks.


  • Tim Williams

    #2
    Re: Resizing a Web Page?

    You cannot do this on a page which is already open (and would be best
    advised that it would be pretty annoying if you were able to....)

    Option for removing chrome is only available if you're openeing a new
    window using "window.ope n()"

    Tim.


    "bobj" <bobj@frontiern et.net> wrote in message
    news:UJ2zd.660$ jn7.258@news01. roc.ny...[color=blue]
    > The following will resize a web page on opening
    > when put in the head section of the web page.
    >
    > <script language="JavaS cript">
    > <!--
    > window.moveTo (150, 75);
    > window.resizeTo (700, 600);
    > //-->
    > </script>
    >
    > If I want to remove the scrollbars, status bar, tool bar,
    > menu bar, etc., how do I include that?
    >
    > Thanks.
    >
    >[/color]


    Comment

    • bobj

      #3
      Re: Resizing a Web Page?

      Very well then. I tried this:

      <script language="javas cript">
      <!--
      window.open('cl osings2.htm','' , 'height=500,wid th=700, screenX=100,scr eenY=100,top=75 ,left=150,
      location=0,menu bar=0,resizable =1, status=1,toolba r=0,scrollbars= 1');
      window.opener=s elf;
      window.close();
      //-->
      </script>

      The above is in a web page called closings1.htm. closings1.htm is called by clicking
      on a link on webpage1. When you click on the link, closing1.htm opens closings2.htm and then
      closings1.htm closes.
      However, it also closes webpage1.htm which I want to keep open.

      How do I keep webpage1.htm open? If you like, you can go here and click on the scolling message
      to see what I mean... http://www.svrops.com/montgomeryns/default.htm




      "Tim Williams" <saxifraxREMOVE @THISpacbell.ne t> wrote in message
      news:Gm3zd.3042 $yV1.2269@newss vr14.news.prodi gy.com...[color=blue]
      > You cannot do this on a page which is already open (and would be best
      > advised that it would be pretty annoying if you were able to....)
      >
      > Option for removing chrome is only available if you're openeing a new
      > window using "window.ope n()"
      >
      > Tim.
      >
      >
      > "bobj" <bobj@frontiern et.net> wrote in message
      > news:UJ2zd.660$ jn7.258@news01. roc.ny...[color=green]
      > > The following will resize a web page on opening
      > > when put in the head section of the web page.
      > >
      > > <script language="JavaS cript">
      > > <!--
      > > window.moveTo (150, 75);
      > > window.resizeTo (700, 600);
      > > //-->
      > > </script>
      > >
      > > If I want to remove the scrollbars, status bar, tool bar,
      > > menu bar, etc., how do I include that?
      > >
      > > Thanks.
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • juglesh

        #4
        Re: Resizing a Web Page?


        "bobj" <bobj@frontiern et.net> wrote in message
        news:2U4zd.672$ aA7.528@news01. roc.ny...[color=blue]
        > Very well then. I tried this:
        >
        > <script language="javas cript">
        > <!--
        > window.open('cl osings2.htm','' , 'height=500,wid th=700,
        > screenX=100,scr eenY=100,top=75 ,left=150,
        > location=0,menu bar=0,resizable =1, status=1,toolba r=0,scrollbars= 1');
        > window.opener=s elf;
        > window.close();
        > //-->
        > </script>
        >
        > The above is in a web page called closings1.htm. closings1.htm is called
        > by clicking
        > on a link on webpage1. When you click on the link, closing1.htm opens
        > closings2.htm and then
        > closings1.htm closes.
        > However, it also closes webpage1.htm which I want to keep open.
        >
        > How do I keep webpage1.htm open? If you like, you can go here and click
        > on the scolling message
        > to see what I mean... http://www.svrops.com/montgomeryns/default.htm[/color]

        I tried it, all it did for me was close IE. I figured out because I have
        Google popup blocker. so, its doing the window close, but not popping the
        popup. you should realize that more and more ppl are using popup blockers,
        and your window.opens are going to be unreliable.

        when you get right down to it, do you really even need a popup? why
        couldn't the school closures just be displayed on a regular page?

        --
        juglesh


        Comment

        • Tim Williams

          #5
          Re: Resizing a Web Page?


          As juglesh notes, you would be better off just creating a regular page
          and linking to it: more and more browsers will by default not show
          pop-ups.

          merry christmas

          tim

          "bobj" <bobj@frontiern et.net> wrote in message
          news:2U4zd.672$ aA7.528@news01. roc.ny...[color=blue]
          > Very well then. I tried this:
          >
          > <script language="javas cript">
          > <!--
          > window.open('cl osings2.htm','' , 'height=500,wid th=700,
          > screenX=100,scr eenY=100,top=75 ,left=150,
          > location=0,menu bar=0,resizable =1, status=1,toolba r=0,scrollbars= 1');
          > window.opener=s elf;
          > window.close();
          > //-->
          > </script>
          >
          > The above is in a web page called closings1.htm. closings1.htm is
          > called by clicking
          > on a link on webpage1. When you click on the link, closing1.htm
          > opens closings2.htm and then
          > closings1.htm closes.
          > However, it also closes webpage1.htm which I want to keep open.
          >
          > How do I keep webpage1.htm open? If you like, you can go here and
          > click on the scolling message
          > to see what I mean... http://www.svrops.com/montgomeryns/default.htm
          >
          >
          >[/color]


          Comment

          • bobj

            #6
            Re: Resizing a Web Page?

            Good point.... Thanks.


            "juglesh" <juglesh@nospam RadioKDUG.com> wrote in message news:jn7zd.1356 4$k25.8441@attb i_s53...[color=blue]
            >
            > "bobj" <bobj@frontiern et.net> wrote in message
            > news:2U4zd.672$ aA7.528@news01. roc.ny...[color=green]
            > > Very well then. I tried this:
            > >
            > > <script language="javas cript">
            > > <!--
            > > window.open('cl osings2.htm','' , 'height=500,wid th=700,
            > > screenX=100,scr eenY=100,top=75 ,left=150,
            > > location=0,menu bar=0,resizable =1, status=1,toolba r=0,scrollbars= 1');
            > > window.opener=s elf;
            > > window.close();
            > > //-->
            > > </script>
            > >
            > > The above is in a web page called closings1.htm. closings1.htm is called
            > > by clicking
            > > on a link on webpage1. When you click on the link, closing1.htm opens
            > > closings2.htm and then
            > > closings1.htm closes.
            > > However, it also closes webpage1.htm which I want to keep open.
            > >
            > > How do I keep webpage1.htm open? If you like, you can go here and click
            > > on the scolling message
            > > to see what I mean... http://www.svrops.com/montgomeryns/default.htm[/color]
            >
            > I tried it, all it did for me was close IE. I figured out because I have
            > Google popup blocker. so, its doing the window close, but not popping the
            > popup. you should realize that more and more ppl are using popup blockers,
            > and your window.opens are going to be unreliable.
            >
            > when you get right down to it, do you really even need a popup? why
            > couldn't the school closures just be displayed on a regular page?
            >
            > --
            > juglesh
            >
            >[/color]


            Comment

            Working...