Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirect user to their own homepage

Tags:

html

hyperlink

I was wondering whether it is possible to redirect a user to their homepage. By homepage I mean the URL defined in their browser as homepage. The one they get to when they click the 'Home' button of the browser.

I know that Internet Explorer uses <a href="about:home" title"Go to your homepage">Homepage</a> but I have no idea what other browsers use for this!

Is this possible?

like image 443
Bram Vanroy Avatar asked Nov 04 '22 18:11

Bram Vanroy


2 Answers

I dont know if you are looking for something like this discussed in this thread:

Sending user to their browser's Home Page using Javascript

like image 127
Haris Avatar answered Nov 10 '22 15:11

Haris


Just make a link to go back where the user came from:

<a href="#" onClick="history.go(-1);return true;">Back</a>

Or a similar button

<button type="button" onClick="history.go(-1): return true:">I do not agree</button>
like image 29
Kimvais Avatar answered Nov 10 '22 17:11

Kimvais