I am trying to change a line of text when a user uses the back button to return to a page what I have at the moment is this:
Expand|Select|Wrap|Line Numbers
- <script>
- if(window.location == window.location){
- document.write( "<h1>Hello There</h1>" );
- }
- else if(window.history.back(-1) == window.location){
- document.write("<h1>welcome back</h1>");
- }
- </script>
- </head>
- <body>
- <p><a href="index.html" >Forward</a></p>
- </body>
- </html>
Any help with this will be greatly appreciated.
K