Open dropdown link in NEW WINDOW

Discussion in 'Microsoft Frontpage' started by Jim, Nov 10, 2003.

  1. Jim

    Jim Guest

    Hey all, I'm having a bit of a problem that I need help with. I have
    this nice code that I've mined off this site that will open a .pdf or
    ..doc for me when I make a choice from a dropdown menu, but it opens it
    in the same window. I really need it to open in a NEW window. Any
    suggestions?


    <script language=JavaScript>
    <!--
    <!--
    var message="";
    ///////////////////////////////////
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

    document.oncontextmenu=new Function("return false")
    // -->

    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    function popMeUp() {
    var newWindow = window.open("", "", "height=400,width=400");
    }
    }

    //-->
    </script>




    <h1>Employee Self-Service Forms</h1>

    <table border="1" cellpadding="0" cellspacing="0"
    style="border-collapse: collapse; border-left-width: 0;
    border-right-width: 0" bordercolor="#111111" width="69%"
    id="AutoNumber1">
    <tr>
    <td width="100%" style="border-style: solid; border-width: 1"
    bgcolor="#EFEFDE" height="50">
    <b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
    &nbsp;&nbsp;&nbsp;&nbsp;
    </b>
    <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
    <option selected>Scroll to Select</option>
    <option value= "http://help.myco.com//ADAMedicalCertification.pdf">ADA
    Form</option>
    <option value="http://help.myco.com//Adopt1.pdf">Adoption
    Assistance</option>
    <option value="http://help.myco.com//Adopt2.pdf">Adoption
    Assistance Reimbursement</option>
    <option value="http://help.myco.com//AssistClaim.pdf">Assistance
    in Claims Administration</option>
    <option value="http://help.myco.com//BenefitsChg.pdf">Benefits
    Change/Calculation Form</option>
     
    Jim, Nov 10, 2003
    #1
    1. Advertisements

  2. Jim,

    First, the script that you "mined" is copyrighted by the writer of the
    script. Do you have permission to use it?

    Change this line

    MM_jumpMenu('parent',this,0)">

    To

    MM_jumpMenu('_blank',this,0)">
    --
    Mike -- FrontPage MVP '97-'02
    http://www.websunlimited.com
    FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
    ----------------------------------------------------------------------------
    --------------------
    If you think I'm doing a good job, let MS know at

    "Jim" <> wrote in message
    news:...
    > Hey all, I'm having a bit of a problem that I need help with. I have
    > this nice code that I've mined off this site that will open a .pdf or
    > .doc for me when I make a choice from a dropdown menu, but it opens it
    > in the same window. I really need it to open in a NEW window. Any
    > suggestions?
    >
    >
    > <script language=JavaScript>
    > <!--
    > <!--
    > var message="";
    > ///////////////////////////////////
    > function clickIE() {if (document.all) {(message);return false;}}
    > function clickNS(e) {if
    > (document.layers||(document.getElementById&&!document.all)) {
    > if (e.which==2||e.which==3) {(message);return false;}}}
    > if (document.layers)
    > {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    > else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    >
    > document.oncontextmenu=new Function("return false")
    > // -->
    >
    > function MM_jumpMenu(targ,selObj,restore){ //v3.0
    > eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    > if (restore) selObj.selectedIndex=0;
    > function popMeUp() {
    > var newWindow = window.open("", "", "height=400,width=400");
    > }
    > }
    >
    > //-->
    > </script>
    >
    >
    >
    >
    > <h1>Employee Self-Service Forms</h1>
    >
    > <table border="1" cellpadding="0" cellspacing="0"
    > style="border-collapse: collapse; border-left-width: 0;
    > border-right-width: 0" bordercolor="#111111" width="69%"
    > id="AutoNumber1">
    > <tr>
    > <td width="100%" style="border-style: solid; border-width: 1"
    > bgcolor="#EFEFDE" height="50">
    > <b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
    > &nbsp;&nbsp;&nbsp;&nbsp;
    > </b>
    > <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
    > <option selected>Scroll to Select</option>
    > <option value= "http://help.myco.com//ADAMedicalCertification.pdf">ADA
    > Form</option>
    > <option value="http://help.myco.com//Adopt1.pdf">Adoption
    > Assistance</option>
    > <option value="http://help.myco.com//Adopt2.pdf">Adoption
    > Assistance Reimbursement</option>
    > <option value="http://help.myco.com//AssistClaim.pdf">Assistance
    > in Claims Administration</option>
    > <option value="http://help.myco.com//BenefitsChg.pdf">Benefits
    > Change/Calculation Form</option>
     
    MD WebsUnlimited.com, Nov 10, 2003
    #2
    1. Advertisements

  3. Jim

    Bob Lehmann Guest

    The script, besides being auto-generated by DreamWeaver or (one of its
    spastic spin-offs), is so generic, that I doubt there would be any copyright
    issues.

    Who do you suppose owns the copyright to the following......
    Do While Not rs.EOF
    bla blah blah
    rs.MoveNext
    Loop

    Bob Lehmann


    "MD WebsUnlimited.com" <> wrote in message
    news:...
    > Jim,
    >
    > First, the script that you "mined" is copyrighted by the writer of the
    > script. Do you have permission to use it?
    >
    > Change this line
    >
    > MM_jumpMenu('parent',this,0)">
    >
    > To
    >
    > MM_jumpMenu('_blank',this,0)">
    > --
    > Mike -- FrontPage MVP '97-'02
    > http://www.websunlimited.com
    > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
    > --------------------------------------------------------------------------

    --
    > --------------------
    > If you think I'm doing a good job, let MS know at
    >
    > "Jim" <> wrote in message
    > news:...
    > > Hey all, I'm having a bit of a problem that I need help with. I have
    > > this nice code that I've mined off this site that will open a .pdf or
    > > .doc for me when I make a choice from a dropdown menu, but it opens it
    > > in the same window. I really need it to open in a NEW window. Any
    > > suggestions?
    > >
    > >
    > > <script language=JavaScript>
    > > <!--
    > > <!--
    > > var message="";
    > > ///////////////////////////////////
    > > function clickIE() {if (document.all) {(message);return false;}}
    > > function clickNS(e) {if
    > > (document.layers||(document.getElementById&&!document.all)) {
    > > if (e.which==2||e.which==3) {(message);return false;}}}
    > > if (document.layers)
    > > {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    > > else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    > >
    > > document.oncontextmenu=new Function("return false")
    > > // -->
    > >
    > > function MM_jumpMenu(targ,selObj,restore){ //v3.0
    > >

    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    > > if (restore) selObj.selectedIndex=0;
    > > function popMeUp() {
    > > var newWindow = window.open("", "", "height=400,width=400");
    > > }
    > > }
    > >
    > > //-->
    > > </script>
    > >
    > >
    > >
    > >
    > > <h1>Employee Self-Service Forms</h1>
    > >
    > > <table border="1" cellpadding="0" cellspacing="0"
    > > style="border-collapse: collapse; border-left-width: 0;
    > > border-right-width: 0" bordercolor="#111111" width="69%"
    > > id="AutoNumber1">
    > > <tr>
    > > <td width="100%" style="border-style: solid; border-width: 1"
    > > bgcolor="#EFEFDE" height="50">
    > > <b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
    > > &nbsp;&nbsp;&nbsp;&nbsp;
    > > </b>
    > > <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
    > > <option selected>Scroll to Select</option>
    > > <option value=

    "http://help.myco.com//ADAMedicalCertification.pdf">ADA
    > > Form</option>
    > > <option value="http://help.myco.com//Adopt1.pdf">Adoption
    > > Assistance</option>
    > > <option value="http://help.myco.com//Adopt2.pdf">Adoption
    > > Assistance Reimbursement</option>
    > > <option value="http://help.myco.com//AssistClaim.pdf">Assistance
    > > in Claims Administration</option>
    > > <option value="http://help.myco.com//BenefitsChg.pdf">Benefits
    > > Change/Calculation Form</option>

    >
    >
     
    Bob Lehmann, Nov 10, 2003
    #3
  4. Jim

    Jim Guest

    To answer your questions... Yes, I do have his permission. Thanks for
    the help guys, I'll try it in the morning!

    "Bob Lehmann" <none> wrote in message news:<>...
    > The script, besides being auto-generated by DreamWeaver or (one of its
    > spastic spin-offs), is so generic, that I doubt there would be any copyright
    > issues.
    >
    > Who do you suppose owns the copyright to the following......
    > Do While Not rs.EOF
    > bla blah blah
    > rs.MoveNext
    > Loop
    >
    > Bob Lehmann
    >
    >
    > "MD WebsUnlimited.com" <> wrote in message
    > news:...
    > > Jim,
    > >
    > > First, the script that you "mined" is copyrighted by the writer of the
    > > script. Do you have permission to use it?
    > >
    > > Change this line
    > >
    > > MM_jumpMenu('parent',this,0)">
    > >
    > > To
    > >
    > > MM_jumpMenu('_blank',this,0)">
    > > --
    > > Mike -- FrontPage MVP '97-'02
    > > http://www.websunlimited.com
    > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
    > > --------------------------------------------------------------------------

    > --
    > > --------------------
    > > If you think I'm doing a good job, let MS know at
    > >
    > > "Jim" <> wrote in message
    > > news:...
    > > > Hey all, I'm having a bit of a problem that I need help with. I have
    > > > this nice code that I've mined off this site that will open a .pdf or
    > > > .doc for me when I make a choice from a dropdown menu, but it opens it
    > > > in the same window. I really need it to open in a NEW window. Any
    > > > suggestions?
    > > >
    > > >
    > > > <script language=JavaScript>
    > > > <!--
    > > > <!--
    > > > var message="";
    > > > ///////////////////////////////////
    > > > function clickIE() {if (document.all) {(message);return false;}}
    > > > function clickNS(e) {if
    > > > (document.layers||(document.getElementById&&!document.all)) {
    > > > if (e.which==2||e.which==3) {(message);return false;}}}
    > > > if (document.layers)
    > > > {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    > > > else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    > > >
    > > > document.oncontextmenu=new Function("return false")
    > > > // -->
    > > >
    > > > function MM_jumpMenu(targ,selObj,restore){ //v3.0
    > > >

    > eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    > > > if (restore) selObj.selectedIndex=0;
    > > > function popMeUp() {
    > > > var newWindow = window.open("", "", "height=400,width=400");
    > > > }
    > > > }
    > > >
    > > > //-->
    > > > </script>
    > > >
    > > >
    > > >
    > > >
    > > > <h1>Employee Self-Service Forms</h1>
    > > >
    > > > <table border="1" cellpadding="0" cellspacing="0"
    > > > style="border-collapse: collapse; border-left-width: 0;
    > > > border-right-width: 0" bordercolor="#111111" width="69%"
    > > > id="AutoNumber1">
    > > > <tr>
    > > > <td width="100%" style="border-style: solid; border-width: 1"
    > > > bgcolor="#EFEFDE" height="50">
    > > > <b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
    > > > &nbsp;&nbsp;&nbsp;&nbsp;
    > > > </b>
    > > > <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
    > > > <option selected>Scroll to Select</option>
    > > > <option value=

    > "http://help.myco.com//ADAMedicalCertification.pdf">ADA
    > > > Form</option>
    > > > <option value="http://help.myco.com//Adopt1.pdf">Adoption
    > > > Assistance</option>
    > > > <option value="http://help.myco.com//Adopt2.pdf">Adoption
    > > > Assistance Reimbursement</option>
    > > > <option value="http://help.myco.com//AssistClaim.pdf">Assistance
    > > > in Claims Administration</option>
    > > > <option value="http://help.myco.com//BenefitsChg.pdf">Benefits
    > > > Change/Calculation Form</option>

    > >
    > >
     
    Jim, Nov 11, 2003
    #4
  5. Oh, the script is from Micro Media ;>)

    --
    Mike -- FrontPage MVP '97-'02
    http://www.websunlimited.com
    FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
    ----------------------------------------------------------------------------
    --------------------
    If you think I'm doing a good job, let MS know at

    "Jim" <> wrote in message
    news:...
    > To answer your questions... Yes, I do have his permission. Thanks for
    > the help guys, I'll try it in the morning!
    >
    > "Bob Lehmann" <none> wrote in message

    news:<>...
    > > The script, besides being auto-generated by DreamWeaver or (one of its
    > > spastic spin-offs), is so generic, that I doubt there would be any

    copyright
    > > issues.
    > >
    > > Who do you suppose owns the copyright to the following......
    > > Do While Not rs.EOF
    > > bla blah blah
    > > rs.MoveNext
    > > Loop
    > >
    > > Bob Lehmann
    > >
    > >
    > > "MD WebsUnlimited.com" <> wrote in message
    > > news:...
    > > > Jim,
    > > >
    > > > First, the script that you "mined" is copyrighted by the writer of the
    > > > script. Do you have permission to use it?
    > > >
    > > > Change this line
    > > >
    > > > MM_jumpMenu('parent',this,0)">
    > > >
    > > > To
    > > >
    > > > MM_jumpMenu('_blank',this,0)">
    > > > --
    > > > Mike -- FrontPage MVP '97-'02
    > > > http://www.websunlimited.com
    > > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible

    > >

    > --------------------------------------------------------------------------
    > > --
    > > > --------------------
    > > > If you think I'm doing a good job, let MS know at
    > > >
    > > > "Jim" <> wrote in message
    > > > news:...
    > > > > Hey all, I'm having a bit of a problem that I need help with. I

    have
    > > > > this nice code that I've mined off this site that will open a .pdf

    or
    > > > > .doc for me when I make a choice from a dropdown menu, but it opens

    it
    > > > > in the same window. I really need it to open in a NEW window. Any
    > > > > suggestions?
    > > > >
    > > > >
    > > > > <script language=JavaScript>
    > > > > <!--
    > > > > <!--
    > > > > var message="";
    > > > > ///////////////////////////////////
    > > > > function clickIE() {if (document.all) {(message);return false;}}
    > > > > function clickNS(e) {if
    > > > > (document.layers||(document.getElementById&&!document.all)) {
    > > > > if (e.which==2||e.which==3) {(message);return false;}}}
    > > > > if (document.layers)
    > > > >

    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    > > > > else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    > > > >
    > > > > document.oncontextmenu=new Function("return false")
    > > > > // -->
    > > > >
    > > > > function MM_jumpMenu(targ,selObj,restore){ //v3.0
    > > > >

    > >

    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    > > > > if (restore) selObj.selectedIndex=0;
    > > > > function popMeUp() {
    > > > > var newWindow = window.open("", "", "height=400,width=400");
    > > > > }
    > > > > }
    > > > >
    > > > > //-->
    > > > > </script>
    > > > >
    > > > >
    > > > >
    > > > >
    > > > > <h1>Employee Self-Service Forms</h1>
    > > > >
    > > > > <table border="1" cellpadding="0" cellspacing="0"
    > > > > style="border-collapse: collapse; border-left-width: 0;
    > > > > border-right-width: 0" bordercolor="#111111" width="69%"
    > > > > id="AutoNumber1">
    > > > > <tr>
    > > > > <td width="100%" style="border-style: solid; border-width: 1"
    > > > > bgcolor="#EFEFDE" height="50">
    > > > > <b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
    > > > > &nbsp;&nbsp;&nbsp;&nbsp;
    > > > > </b>
    > > > > <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
    > > > > <option selected>Scroll to Select</option>
    > > > > <option value=

    > > "http://help.myco.com//ADAMedicalCertification.pdf">ADA
    > > > > Form</option>
    > > > > <option value="http://help.myco.com//Adopt1.pdf">Adoption
    > > > > Assistance</option>
    > > > > <option value="http://help.myco.com//Adopt2.pdf">Adoption
    > > > > Assistance Reimbursement</option>
    > > > > <option value="http://help.myco.com//AssistClaim.pdf">Assistance
    > > > > in Claims Administration</option>
    > > > > <option value="http://help.myco.com//BenefitsChg.pdf">Benefits
    > > > > Change/Calculation Form</option>
    > > >
    > > >
     
    MD WebsUnlimited.com, Nov 11, 2003
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jack Brewster

    Re: how to open a link in a new window?

    Jack Brewster, Jul 8, 2003, in forum: Microsoft Frontpage
    Replies:
    0
    Views:
    466
    Jack Brewster
    Jul 8, 2003
  2. Bill T

    Re: how to open a link in a new window?

    Bill T, Jul 8, 2003, in forum: Microsoft Frontpage
    Replies:
    1
    Views:
    454
    Ken Kuhlman
    Jul 8, 2003
  3. Rick Campbell

    Open in New Window from Link Bar

    Rick Campbell, Jul 15, 2003, in forum: Microsoft Frontpage
    Replies:
    1
    Views:
    178
    David Berry
    Jul 15, 2003
  4. Steve H

    Open link in a new window

    Steve H, Sep 30, 2003, in forum: Microsoft Frontpage
    Replies:
    0
    Views:
    181
    Steve H
    Sep 30, 2003
  5. Guest

    Open New Window with Dropdown Form

    Guest, Apr 1, 2005, in forum: Microsoft Frontpage
    Replies:
    5
    Views:
    395
    Thomas A. Rowe
    Apr 1, 2005
Loading...

Share This Page