Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
94
rated 0 times [  95] [ 1]  / answers: 1 / hits: 150033  / 14 Years ago, sat, november 20, 2010, 12:00:00

How can I redirect a user to home page?


Example: mywebsite.example/ddfdf/fdfdsf and I want to redirect to mywebsite.example


However I want to do it without typing the static name. How can I do this?


More From » redirect

 Answers
8
document.location.href=/;

[#94897] Thursday, November 18, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brandon

Total Points: 393
Total Questions: 106
Total Answers: 106

Location: Aland Islands
Member since Wed, Nov 17, 2021
3 Years ago
;