Focus For A New Form

Discussion in 'ASP General' started by George Fernett, May 3, 2004.

  1. Hi all,

    I have a page that lists codes and when a code is clicked on, I wanted to
    show the full text description for the code.
    Response.Write("<td nowrap>" & "<a
    href=""/scripts/codedescription.asp?lcode=" & oRS.fields("jspcde") & " ""
    target=""tu"" onclick=""var
    tu=window.open('','tu',config='height=360,width=350,location=0,menubar=0,too
    lbar=0,resizable=0,status=0,scrollbars=1');tu.moveTo(410,120)""><font
    color=""#0000cc"">" & oRS.fields("jspcde") & "</font></a>" & "</td>")

    I have a function in my UTILITY.ASP:
    function openWin(doc)
    var
    tu=window.open(doc,"tu",config="height=360,width=350,location=0,menubar=0,to
    olbar=0,resizable=0,status=0,scrollbars=1")

    end function

    It works fine the first time, but if I click on the main form again, the
    "pop-up" form foes behind the main form. Is there a way to keep bringing
    out the second form each time? Somehting like a FOCUS or ONTOP command?

    Thanks in advance,

    George
    George Fernett, May 3, 2004
    #1
    1. Advertising

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. Jason
    Replies:
    4
    Views:
    1,618
    Jason
    May 7, 2007
  2. Replies:
    2
    Views:
    336
    Thomas 'PointedEars' Lahn
    Jun 6, 2005
  3. Roger
    Replies:
    3
    Views:
    322
  4. Jeff

    manual focus vs. focus()

    Jeff, May 20, 2007, in forum: Javascript
    Replies:
    4
    Views:
    178
  5. Spizzat2
    Replies:
    2
    Views:
    177
    Spizzat2
    Jan 9, 2008
Loading...

Share This Page