Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Lingle, Wy
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open Sized Window

    I am trying to get a window to open as a sized chromeless window.

    I have been trying:

    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252">
    <TITLE>WA Total Schedules</TITLE>

    <SCRIPT language="JavaScript">
    <!--hide from old browsers

    function WinOpen()
    {
    window.open('sizedwindow','width=400,height=200,left=0,top=100,screenX=0,screenY=100')
    }

    //-->
    </SCRIPT>

    </HEAD>
    <BODY onload="WinOpen()">

    After I click the link I would like the window to open sized and placed with limited attributes.

    How can I get this window to open as a sized window?
    Thank You.

  • #2
    Regular Coder
    Join Date
    Mar 2003
    Posts
    176
    Thanks
    0
    Thanked 0 Times in 0 Posts
    maybe its this:
    Code:
    function WinOpen() 
    { 
    window. open('','sizedwindow','width=400,height=200,left=0,top=100,screenX=0,screenY=100')
    }
    The parameters (width, height etc) should all be on one line.

    The empty '' (before sizedWindow) take the url of the page to load into the window. You can leave this blank if your writing stuff on the fly.
    Last edited by HairyTeeth; 04-10-2003 at 07:45 PM.

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    Lingle, Wy
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sized Window onLoad

    I am trying to open this page (as a sized paged) from a java applet that I unforntuately can't use anything more than a simple link from.

    I thought I could have a window open using the <body onLoad=""> function that would open the window that would be sized and have the attributes specific to that window.

    So far I haven't come up with anything that works.

    I have tried javascript in the <head> </head> section.Then placeing the function in the <body onload="">.

    I have also tried just placeing the function in the <body onload=""> function itself.

    <body onload="javascript:window.open(etc,etc);return true;">
    Thank You.

  • #4
    New Coder
    Join Date
    Jul 2002
    Location
    Lingle, Wy
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    This will open sized window

    I have got it to open as a sized window by using this.

    I still need to remove some of the attributes of the window and place the windows position.

    <BODY Onload="javascript:window.resizeTo(800,500);">
    Thank You.

  • #5
    New Coder
    Join Date
    Jul 2002
    Location
    Lingle, Wy
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Resized then move to

    I have got it to Resize then move to by using:

    <BODY Onload="javascript:window.resizeTo(800,500);moveTo(10,120);">

    How can I get the attributes to remove?
    Thank You.

  • #6
    New Coder
    Join Date
    Jul 2002
    Location
    Lingle, Wy
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open Sized Window

    I have got it to work using the above post.

    The only other thoughts I have are to open a parent window, then open a child window from that(the parent window) while closing the parent window simutaneously (or close to that) for a seamless approach.

    The only other approach I can find is to use an signed activex control.

    There seems to be an equivilent in Netscape as well.

    Does anyone know which would be best and how to go about it?
    Thank You.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •