How do I get a back button on my page?
Answer / guest
In HTML, this is impossible. Going "back" means that you go
to the previous page in your history. You might be able to
create a link to the URL specified in the "HTTP_REFERER"
environment variable in your document, but that only creates
a link to a new location in your history. Even worse, the
information in that variable can be plain wrong. Some
browsers incorrectly send the variable when you use a
bookmark or type in an URL manually, and some don't send
that variable at all. Then you would end up with an empty link.
A JavaScript could use "history.back()" to do this, but this
only works in Netscape 2.
| Is This Answer Correct ? | 1 Yes | 1 No |
What is the advantage of using frames?
Is localstorage async?
What is dynamic xhtml document?
What do u mean by html tags?
Why is a url encoded in html?
What is ptm full form?
What is the use of a span tag? Give one example.
What does p </ p mean?
What is the significance of <head> and <body> tag in HTML?
Is there a way to get indexed better by the search engines?
What is an image tag?
What are the new <input> types for form validation in html5?