|
-
Dec 6th, 2004, 10:00 AM
#1
Thread Starter
Member
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 ~~$ 
-
Dec 6th, 2004, 05:52 PM
#2
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.
-
Dec 7th, 2004, 08:34 AM
#3
Thread Starter
Member
Re: Double Link in Single Click ?
 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 ~~$ 
-
Dec 7th, 2004, 08:46 AM
#4
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.
-
Dec 7th, 2004, 11:19 AM
#5
Frenzied Member
Re: Double Link in Single Click ?
 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.
-
Dec 7th, 2004, 11:23 AM
#6
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.
-
Dec 7th, 2004, 11:25 AM
#7
Frenzied Member
Re: Double Link in Single Click ?
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|