0

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.

1 Answers1

-1
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
   location.href = 'www.your.domain.com';
}

Detect Firefox

Community
  • 1
  • 1
Nano
  • 1,398
  • 6
  • 20
  • 32
  • 3
    Please 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