PDA

Click to See Complete Forum and Search --> : Double Link in Single Click ?


khalil
Dec 6th, 2004, 09:00 AM
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 ...

CornedBee
Dec 6th, 2004, 04:52 PM
It's possible with JavaScript, by having an onclick handler do one thing and the default link action another.

khalil
Dec 7th, 2004, 07:34 AM
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

CornedBee
Dec 7th, 2004, 07:46 AM
One way:
<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.

vbNeo
Dec 7th, 2004, 10:19 AM
One way:
<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">)

CornedBee
Dec 7th, 2004, 10:23 AM
Any element with id="bottom" will suffice.

vbNeo
Dec 7th, 2004, 10:25 AM
Any element with id="bottom" will suffice.

Really? That's news to me :)