How do I get a back button on my page?



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

Post New Answer

More HTML DHTML Interview Questions

What is Geolocation API in HTML?

0 Answers  


Is li an empty tag?

0 Answers  


What is semantic elements?

0 Answers  


How do I know if I have html5?

0 Answers  


What is the main purpose of html?

0 Answers  






Why doesn't XHTML2 use XLink?

1 Answers  


What is a combobox in html?

0 Answers  


Is img a self closing tag?

0 Answers  


What is a label tag?

0 Answers  


How long does it take to learn html?

0 Answers  


Difference between :first-child and :nth-of-child

0 Answers  


How do you use form tags?

0 Answers  


Categories