Javascript Target For ondblclick Event

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

    Javascript Target For ondblclick Event

    I am creating a simple site with two frame elements. The frame on the
    left (MENU) contains a menu, and the big frame on the right (PAGE)
    handles content. The menu frame has an image which loads the
    seach.asp page using standard HTML in the PAGE frame when the user
    clicks it -

    <a href="search.as p" target="page">< img src="search.jpg "></a>

    What I'm trying to do now is setup a Javascript ondblclick event on
    another image to load my admin page in the PAGE frame. Trying to help
    myself I've managed to come up with this so far -

    ondblclick="win dow.location=(' admin.asp');"

    This works, but admin.asp is loading in the MENU frame and I obviously
    want it to load in the PAGE frame. I'm sure this is simplicity
    itself, but I cant suss the bugger out. If anyone can understand what
    on earth I'm talking about, and has the answer, please put me out of
    my misery!

    Thanks,

    Colin
  • VK

    #2
    Re: Javascript Target For ondblclick Event

    ondblclick="top .PAGE.location. href='admin.asp ';"

    Colin Steadman <google_REMOVET HISBIT@colinste adman.com> wrote in message
    news:c00c070.03 09230738.545016 2e@posting.goog le.com...[color=blue]
    > I am creating a simple site with two frame elements. The frame on the
    > left (MENU) contains a menu, and the big frame on the right (PAGE)
    > handles content. The menu frame has an image which loads the
    > seach.asp page using standard HTML in the PAGE frame when the user
    > clicks it -
    >
    > <a href="search.as p" target="page">< img src="search.jpg "></a>
    >
    > What I'm trying to do now is setup a Javascript ondblclick event on
    > another image to load my admin page in the PAGE frame. Trying to help
    > myself I've managed to come up with this so far -
    >
    > ondblclick="win dow.location=(' admin.asp');"
    >
    > This works, but admin.asp is loading in the MENU frame and I obviously
    > want it to load in the PAGE frame. I'm sure this is simplicity
    > itself, but I cant suss the bugger out. If anyone can understand what
    > on earth I'm talking about, and has the answer, please put me out of
    > my misery!
    >
    > Thanks,
    >
    > Colin[/color]


    Comment

    • Colin Steadman

      #3
      Re: Javascript Target For ondblclick Event

      > ondblclick="top .PAGE.location. href='admin.asp ';"

      Excellent, thanks for your help!

      Col

      Comment

      Working...