Results 1 to 6 of 6

Thread: Open window

  1. #1
    Join Date
    Feb 2003
    Posts
    18

    Arrow Unanswered: Open window

    Hello,
    I am using javascript openwin function to open a new window.
    The window gets opened but it has some height and width.
    I want the window to be opened in minimized form.
    How I can acheive this?

    This is my code

    <script language="JavaScript">
    <!--
    function openWin( windowURL, windowName, windowFeatures ) {
    return window.open( windowURL, windowName, windowFeatures ) ;
    }

    function ow()
    {
    openWin( 'bb.asp', 'Details', 'toolbar=0,location=0,directories=0,status=0,menuB ar=0,scrollBars=0,resizable=0' );
    }
    //-->
    </script>

    <a href="javascript:ow();">Click Here</a>



    Thanks,
    Rahul

  2. #2
    Join Date
    Jul 2003
    Location
    Ohio/Chicago
    Posts
    75
    hi rahulqa,

    here are some of the window options you can use

    window.open "default.htm", "main", "fullscreen=0 toolbar=0 Location=0
    directories=0 status=0 menubar=0 scrollbars=0 resizeable=0 minimize=0
    maximize=0 systemMenu=0"


    just set attribute to 1 if you want to use it, minimize in your case, hope that works

  3. #3
    Join Date
    Feb 2003
    Posts
    18
    I tried your code but it is not working. It still opens the window in maximized form.

  4. #4
    Join Date
    Jul 2003
    Location
    Ohio/Chicago
    Posts
    75
    width, height, location, menubar, resizable , status, and toolbar are the only options available on all platforms. Sadly some of these won't work for ALL platforms such as minimize, bummer huh?

    javascript is really annoying, that's part of the reason why some methods work sometimes but not others, it's REALLY annoying.

  5. #5
    Join Date
    Dec 2002
    Location
    KY
    Posts
    56

    Re: Open window

    try this its a lil popup window

    function Popup()
    {
    var popupURL ="report_builder.asp?report=blr_report_certificate .asp&search_no=<%=Search_No%>";
    window.open(popupURL,"Popup",'toolbar=1,location=1 ,directories=1,status=1,menubar=1,scrollbars=1,res izable=1');
    }

  6. #6
    Join Date
    Feb 2003
    Posts
    18
    This code also opens the window in maximized form.

Posting Permissions

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