I'm developing a webpage but due to some reasons I want it to only open in Firefox browser. If opened in anyother browser like IE or chrome it automatically redirect to the page in which I can show message.
Asked
Active
Viewed 209 times
0
-
1So you're saying you want to detect which browser the user is using? – Evan Knowles May 12 '14 at 06:24
-
what if the user does not have ff and he has only chrome and ie or safari ...... its an unlikely option to open only in FF ...... – Vicky May 12 '14 at 07:15
-
I'm curious: _Why_ do you need this page to only work in FF? – Cerbrus May 12 '14 at 07:26
1 Answers
-1
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
location.href = 'www.your.domain.com';
}
-
3Please don't answer questions that have been answered a hundred times already. Mark the question as duplicate, instead. – Cerbrus May 12 '14 at 06:41