Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Html adressing

i am usin back and fwrd buttons on my Homepage
is there a way to go back to last loaded Page
without doing a real adressing like
<A HREF="../../index.html">abcde</A>
should be <A HREF=_back>back</A> dose a command exits
like this ??
0
aladdin
Asked:
aladdin
1 Solution
 
erajojCommented:
This is an example of how to do it, using Java-script:

<H3>History buttons</H3>
<FORM>
<INPUT TYPE="button" VALUE=" Back " onClick="history.back()">
<INPUT TYPE="button" VALUE=" Forward " onClick="history.forward()">
</FORM>

The magic is in 'onClick="history.back()"'.
You'll know what to do.

/// John

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now