Results 1 to 7 of 7

Thread: Double Link in Single Click ?

  1. #1

    Thread Starter
    Member khalil's Avatar
    Join Date
    Apr 2004
    Posts
    49

    Question Double Link in Single Click ?

    I want that the user clicks on a hyperlink
    and
    Two things happen
    1) the link opens in a frame named somthing on the page
    2) the page moves to the bottom of the page where the frame is .

    How can I do this buddies ...
    Muhammad Khalil Raza

    $~~ Well do or don't do ~~$

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Double Link in Single Click ?

    It's possible with JavaScript, by having an onclick handler do one thing and the default link action another.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Member khalil's Avatar
    Join Date
    Apr 2004
    Posts
    49

    Re: Double Link in Single Click ?

    Quote Originally Posted by CornedBee
    It's possible with JavaScript, by having an onclick handler do one thing and the default link action another.
    Your reply looks Good .
    Would you like to explain it ...please
    Muhammad Khalil Raza

    $~~ Well do or don't do ~~$

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Double Link in Single Click ?

    One way:
    Code:
    <a href="#bottom" onclick="window.frames.otherframe.location='whereever'">Hit me!</a>
    Personally I dislike such stuff (I dislike frames, anyway), but it should serve your purpose.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Re: Double Link in Single Click ?

    Quote Originally Posted by CornedBee
    One way:
    Code:
    <a href="#bottom" onclick="window.frames.otherframe.location='whereever'">Hit me!</a>
    Personally I dislike such stuff (I dislike frames, anyway), but it should serve your purpose.
    Remeber to put the anchorpoint at the location you want it to go(<a name="#bottom">)
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Double Link in Single Click ?

    Any element with id="bottom" will suffice.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Re: Double Link in Single Click ?

    Quote Originally Posted by CornedBee
    Any element with id="bottom" will suffice.
    Really? That's news to me
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width