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 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    link to new browser window from menu

    Can anyone tell me how to make the URL open up in a new window with specific dimensions from a menu - rather than the parent please?

    onChange="MM_jumpMenu('parent',this,1)"

    Thank you!

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    you are going to have to change the properties of the mickey mouse function jump menu

    seeing the mickey mouse code would help

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <script language="JavaScript" type="text/javascript">
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    }
    //-->

    Does this help?

    Thanks

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Alien51...lol...
    Code:
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    	MickeyMouse_Windy(selObj.options[selObj.selectedIndex].value);
    	if (restore) selObj.selectedIndex=0;
    }
    
    function MickeyMouse_Windy(url)
    {
    	MM_W = open(url, 'MM_W', 'width=some_integer,height=some_integer,left=some_integer,top=some_integer,chrome');
    	if (MM_W && !MM_W.closed)
    		MM_W.focus();
    }
    chrome available here.

  • #5
    New Coder
    Join Date
    Aug 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Excellent - 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
    •