Web Analytics Made Easy -
StatCounter Spawning Browser @ size AND no Toolbars? - CodingForum

Announcement

Collapse
No announcement yet.

Spawning Browser @ size AND no Toolbars?

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

  • Spawning Browser @ size AND no Toolbars?

    OK. I got my browser window spawning at tthe desired size.

    i.e.,

    <frameset rows="*,80%" onload="javascript:resizeTo(1100,875)">

    Now I want to kill all the toolbars, etc.

    As in this:

    function POP_UP() {
    window.open('page.html','_blank','toolbar=no,location=no,directories=no,status=yes,menubar=no,resiza ble=no,copyhistory=no,scrollbars=no,width=550,height=400');
    }

    The problem is I can't get the toolbars to be gone using onload vs. when spawned by a link.

    Any help would be appreciated!
    Rick

  • #2
    Call your new window something else besides "_blank". _blank is a reserved word.

    Comment


    • #3
      Don't want a second window...

      What I want is one window, spawned by a link on the desktop, at a given size with no toolbars and other stuff.

      This doesn't work (I guess onload isn't going to do the trick, as the windows properties have already been assigned by then and it won't take them away at that point):

      <frameset rows="*,80%" onload="javascript:resizeTo(1100,875), 'toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,copyhistory=no,scrollbars= no'">

      Rick

      Comment


      • #4
        one way is to have a blank file that will spawn the window you want.

        ie...

        link on desktop to this...
        <HTML>
        <HEAD>
        <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
        <PARAM NAME="Command" VALUE="Close">
        </OBJECT>
        <SCRIPT>

        <!--
        function newWindow() {
        window.open('page.html','popUp','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizab le=no,copyhistory=no,scrollbars=no,width=550,height=400');


        }
        //-->
        </SCRIPT>
        </HEAD>
        <BODY onLoad="newWindow();closes.Click();">
        Welcome
        </BODY>
        </HTML>

        Comment


        • #5
          We're Getting There!

          That's nice....now how do I get the window with the "Welcome" text to close after 2 seconds?

          Thanks!
          Rick

          Comment


          • #6
            try setTimeout(closes.Click(), 200)

            it could be 2000, i never remember

            Comment


            • #7
              Error.

              I'm getting an error message after I added the code above.

              Error: closes is not defined

              Here's my code:

              <HTML>
              <HEAD>
              <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
              <PARAM NAME="Command" VALUE="Close">
              </OBJECT>
              <SCRIPT>

              <!--
              function newWindow() {
              window.open('start.html','popUp','toolbar=no,location=no,directories=no,status=yes,menubar=no,resiza ble=no,copyhistory=no,scrollbars=no,width=1150,height=875');
              }
              //-->
              </SCRIPT>
              </HEAD>
              <BODY onLoad="newWindow();closes.Click();">
              Welcome!
              </BODY>
              </HTML>

              Thanks,
              Rick

              Comment

              Working...
              X