Link to the previous page
Solved
-
Hello,
How can I make the browser reload the previous page when clicking on a link in an HTML page? It should be compatible with both Firefox and IE.
Thanks in advance!
--
aurelien50
How can I make the browser reload the previous page when clicking on a link in an HTML page? It should be compatible with both Firefox and IE.
Thanks in advance!
--
aurelien50
Configuration: Windows Vista Firefox 3.0 IE 8 Dreamweaver 8 flash, photoshop, and indesign CS3
1 answer
-
Hello,
To create a link to the previous or next page, JavaScript must be used.
Previous page:<a href="javascript:history.back()">link text</a>
Next page:<a href="javascript:history.forward()">link text</a>
Learn more -> http://webby.free.fr/trucs/javascript/dhtml_divers_suivante-precedente.html
Benvii-
-
@Anonymous user--
aurelien50 -
-
-
Here’s how to go back to a previous page (here Index) without using JavaScript:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Return Page</title> </head> <body> <!-- Using a button to go back --> <button type="button" onclick="window.location.href='index.html';">GO BACK !!</button> </body> </html>
-