How to Detect User Browser JavaScript Programming Tutorial

preview_player
Показать описание
Learn how to detect the user browser software using JavaScript. There are various different ways to go about obtaining the result. This script is written to best convey the logic to someone new to programming. We also make special considerations for modern versions of Internet Explorer browser detection in this exercise.
Рекомендации по теме
Комментарии
Автор

"I think is a hobby...", you're totally right!!

capauno
Автор

"I don't know what's wrong with those people ... " was the best Microsoft's definition ever hahaha

alcprado
Автор

Here is a PHP tutorial of doing something similar:

AdamKhoury
Автор

you're awesom brother, you helped me a lot :D tnx

hooow
Автор

Subed, thanks man god bless you.
You are life saver.

mohammedissam
Автор

Nicely done. Thank you for the work you put in!

ChimobiHD
Автор

Good video and funny joke about Microsoft...thanks

ClawHammer
Автор

Hi Adam, thank you for this tutorial, it helps me. I know, its trendy hate big companies like Microsoft, but this is not mistake created by MS. How to improve your code? Simply swap items in your array to 0. position "Edge" and 1. position "MSIE" and all works fine. Regards

miroslavkabat
Автор

This digression about Microsoft was hilarious :-)

FajnyAleZaNiski
Автор

nice tutorial sir, i like to have some light on detecting bots which visiting my site using php

sidharthgupta
Автор

I recomand everyone try using a browser detection method based on feature detection.

ochiorbus
Автор

hi, thank you for your tutorial, now if i want to email the same thing in b how should I do that?

_rahiali
Автор

i wonder if people still use ie.. it is a pain in the crack if u ask me

gladstonross
Автор

Just to test, I put the more common browsers like Chrome and Firebox at the end of the array and got some interesting results.
Edge and Chrome will return Chrome or Safari depending on which is earlier in the array.

Would Safari return only Safari and thus we have Chrome at the beginning to negate the mix-up?

Cornbane
Автор

Hey is there any way to detect users internet speed using php or JavaScript and then display the website accordingly . I mean for 3g or WiFi users there will be videos and animations in the website but for 2g users or slow connection there will be text and static images. I hope u get my question. Please help me find the solution .

rahulagarwal
Автор

Hello, teacher. I'm french and I don't understand well Inglish. There is a french version of this course? PLEASE!!!

mohamedlaminetoure
Автор

Worked excellent for firefox, chrome, Internet Explorer but not with edge it is saying chrome whenever i run the page i don't why please help me

tanishqraina
Автор

How does this compare to something like Modernizr?

trentbosnic
Автор

Wait, I know in THIS tutorial it does not matter, but what editor do you use?

enterleftnamehere
Автор

Is there a way to detect login user id in a browser??

sirichandana