Opening ne window OnClick

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tapi

    Opening ne window OnClick

    How can I change the following client side javascript to open the referenced
    asp page in a new window:

    Response.Write "
    <td align=""left"" nowrap
    onClick=""javas cript:document. location=my.asp ?ID1=" & ID1& "&ID2=" & ID2&
    "';"">"



    For now it work perfectly excect that it opens in the paren window.



    Thanks,



    TJ


  • Maarten

    #2
    Re: Opening ne window OnClick




    Comment

    • Tapi

      #3
      Re: Opening ne window OnClick

      The open_win() function works perfectly but somehow fails to recognise one
      of the parameters. Is there a way of opening a new window using the
      following syntax:

      onClick=""javas cript:document. location=my.asp ?ID1=" & ID1& "&ID2=" & ID2&[color=blue]
      > "';"">"[/color]

      Thanks

      "Tapi" <t.jongwe@free. fr> wrote in message
      news:u5Sd1PI0EH A.3908@TK2MSFTN GP10.phx.gbl...[color=blue]
      > How can I change the following client side javascript to open the[/color]
      referenced[color=blue]
      > asp page in a new window:
      >
      > Response.Write "
      > <td align=""left"" nowrap
      > onClick=""javas cript:document. location=my.asp ?ID1=" & ID1& "&ID2=" & ID2&
      > "';"">"
      >
      >
      >
      > For now it work perfectly excect that it opens in the paren window.
      >
      >
      >
      > Thanks,
      >
      >
      >
      > TJ
      >
      >[/color]


      Comment

      • Tapi

        #4
        Re: Opening ne window OnClick

        Found the solution:

        onClick=window. open(""table_ca ndidature_fiche .asp?ID1=" & ID1&"&ID1=" &
        ID1&""")>"


        "Tapi" <t.jongwe@free. fr> wrote in message
        news:uQRtvjt0EH A.2876@TK2MSFTN GP12.phx.gbl...[color=blue]
        > The open_win() function works perfectly but somehow fails to recognise one
        > of the parameters. Is there a way of opening a new window using the
        > following syntax:
        >
        > onClick=""javas cript:document. location=my.asp ?ID1=" & ID1& "&ID2=" & ID2&[color=green]
        > > "';"">"[/color]
        >
        > Thanks
        >
        > "Tapi" <t.jongwe@free. fr> wrote in message
        > news:u5Sd1PI0EH A.3908@TK2MSFTN GP10.phx.gbl...[color=green]
        > > How can I change the following client side javascript to open the[/color]
        > referenced[color=green]
        > > asp page in a new window:
        > >
        > > Response.Write "
        > > <td align=""left"" nowrap
        > > onClick=""javas cript:document. location=my.asp ?ID1=" & ID1& "&ID2=" &[/color][/color]
        ID2&[color=blue][color=green]
        > > "';"">"
        > >
        > >
        > >
        > > For now it work perfectly excect that it opens in the paren window.
        > >
        > >
        > >
        > > Thanks,
        > >
        > >
        > >
        > > TJ
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...