custom "back" button

A

Anna

Hi,

I have several pages, let's say A, B, and C. Amongst other things they all
have a hyperlink to page D. I want to create a back button on page D which
some knows where the visitor came from, page A, B or C and sends him back
there.

Is this possible?

Thanks,

Anna
 
K

Köck Matthias

Hello,
I have several pages, let's say A, B, and C. Amongst other things they all
have a hyperlink to page D. I want to create a back button on page D which
some knows where the visitor came from, page A, B or C and sends him back
there.

Sure:
<input type=button value=Back
onclick=javascript:history.back()>

Köck Matthias
 
A

Anna

It works!

Thanks!

:)


Hello,
I have several pages, let's say A, B, and C. Amongst other things they all
have a hyperlink to page D. I want to create a back button on page D which
some knows where the visitor came from, page A, B or C and sends him back
there.

Sure:
<input type=button value=Back
onclick=javascript:history.back()>

Köck Matthias
 
A

Anna

Hi again,

Can this be done using a Hover Button component as well?

Thanks,

Anna

Hello,
I have several pages, let's say A, B, and C. Amongst other things they all
have a hyperlink to page D. I want to create a back button on page D which
some knows where the visitor came from, page A, B or C and sends him back
there.

Sure:
<input type=button value=Back
onclick=javascript:history.back()>

Köck Matthias
 
K

Köck Matthias

Hello,
Can this be done using a Hover Button component as well?

You can use this code for every link or onclick-area, but
if you want to use it with a Java Hover-Button I'm not
sure and I've never tried, so ... try it.

Köck Matthias
 
S

Steve Easton

You might want to reconsider using Hover buttons.
They are no longer supported in all browsers.
Therefore some folks won't be able to navigate
your site.

Use dhtml image swaps instead.


--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
A

Anna

Thanks, I will do that instead...

Where do I put the "onclick" event though? Sorry, my html knowledge is
limited...

This is the html code that was created when I used the dhtml image swaps to
create my button...

<a
onmouseover="document['fpAnimswapImgFP1'].imgRolln=document['fpAnimswapImgFP
1'].src;document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].lowsrc
;"
onmouseout="document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].im
gRolln" href="javascript:void(0)">

<img border="0" src="../Images/back_1.jpg" id="fpAnimswapImgFP1"
name="fpAnimswapImgFP1" dynamicanimation="fpAnimswapImgFP1"
lowsrc="../Images/back_2.jpg" width="50" height="20"></a></p>

<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>

Thanks,

:)
 
A

Anna

Hey, I figured it out! I'm very proud of myself now... :)

I just changed the href="javascript:void(0)"> part of the code to
href="javascript:history.back()">

:)


Anna said:
Thanks, I will do that instead...

Where do I put the "onclick" event though? Sorry, my html knowledge is
limited...

This is the html code that was created when I used the dhtml image swaps to
create my button...

<a
onmouseover="document['fpAnimswapImgFP1'].imgRolln=document['fpAnimswapImgFP1'].src;document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].lowsrc
onmouseout="document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].im
gRolln" href="javascript:void(0)">

<img border="0" src="../Images/back_1.jpg" id="fpAnimswapImgFP1"
name="fpAnimswapImgFP1" dynamicanimation="fpAnimswapImgFP1"
lowsrc="../Images/back_2.jpg" width="50" height="20"></a></p>

<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>

Thanks,

:)



Steve Easton said:
You might want to reconsider using Hover buttons.
They are no longer supported in all browsers.
Therefore some folks won't be able to navigate
your site.

Use dhtml image swaps instead.


--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
..............................with a computer
 
S

Steve Easton

Awesome.
Good on you ;-)
Give yourself a well deserved "pat on the back."

--
Steve Easton
MS MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer

Anna said:
Hey, I figured it out! I'm very proud of myself now... :)

I just changed the href="javascript:void(0)"> part of the code to
href="javascript:history.back()">

:)


Anna said:
Thanks, I will do that instead...

Where do I put the "onclick" event though? Sorry, my html knowledge is
limited...

This is the html code that was created when I used the dhtml image swaps to
create my button...

<a
onmouseover="document['fpAnimswapImgFP1'].imgRolln=document['fpAnimswapImgFP1'].src;document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].lowsrconmouseout="document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].im
gRolln" href="javascript:void(0)">

<img border="0" src="../Images/back_1.jpg" id="fpAnimswapImgFP1"
name="fpAnimswapImgFP1" dynamicanimation="fpAnimswapImgFP1"
lowsrc="../Images/back_2.jpg" width="50" height="20"></a></p>

<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>

Thanks,

:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top