Workshop 2: Exercise 3: detect web browser vendor and redirect visitor to another page

Back to Workshop 2 index

output

Exercise 3

Create a JavaScript if-statement, which checks if the user is using Mozilla browser. If it is, the browser should load http://www.mozilla.org" page. If not, the browser should load some other website. Create simple pages to test the code.