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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help Coding Please

    I have got this javascript working great as far as it opening in a new window. I am trying to get it to open in a specific size though almost like a popup. Can anyone help?


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <SCRIPT language="JavaScript">
    <!--
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    var s = selObj.options[selObj.selectedIndex].value;
    window.open(s);
    if (restore) selObj.selectedIndex=0;
    }
    //-->
    </script>


    </head>

    <body>
    <table width="100%" border="3">
    <tr>
    <td><form name="form1">
    <select name="Internal Messaging" onChange="MM_jumpMenu('parent',this,1)">
    <option>Internal Messaging</option>
    <option value="URL">TEST
    Internal Alert</option>
    <option value="URL">TEST
    Internal Announcement</option>
    <option value="URL">TEST
    Internal Email</option>
    </select>
    </form></td>

  • #2
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is a link that might be useful. Look at the examples.

    http://www.javascript-coder.com/wind...dow-open.phtml

    david_kw

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A simple syntax for use is

    myRef = window.open(''+self.location,'mywin', 'left=20, top=20, width=500, height=500, toolbar=1, resizable=0');

    for more details see http://www.javascripter.net/faq/openinga.htm


  •  

    Posting Permissions

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