mouse hover submits query

Discussion in 'JavaScript' started by will82, May 12, 2007.

  1. #1
    hi,

    I was wondering if you can help me with this:

    A function needs to do the following:

    - user hovers mouse over link

    - javascript submits the link to a php script

    - resulting page appears in an iframe on same page

    Hope I described it OK.

    Best Regards,

    Will
     
    will82, May 12, 2007 IP
  2. Aztral

    Aztral Well-Known Member

    Messages:
    344
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    125
    #2
    myonhover()
    {
    //get whatever value you need from your <a tag here
    var myvalue = ;
    document.frames['yourframe'].document.location.href = "somephppage.php?someparam=" + myvalue;
    }
     
    Aztral, May 16, 2007 IP