āĻāĻĻāĻžāύāĻŋāĻ āϏā§āϏā§āϝāĻžāϞ āύā§āĻāĻāϝāĻŧāĻžāϰā§āĻāĻŋāĻ āϏāĻžāĻāĻāĻā§āϞā§āϤ⧠āĻāĻŽāϰāĻž āĻĒā§āϰāϤāĻŋāĻĻāĻŋāύ āĻ
āύā§āĻ āϏāĻŽāϝāĻŧ āĻŦā§āϝāϝāĻŧ āĻāϰāĻŋāĨ¤ āĻāϰ āĻāĻ āĻāĻŋāύā§āϤāĻžāĻā§ āĻŽāĻžāĻĨāĻžāϝāĻŧ āϰā§āĻā§ āϝāĻĻāĻŋ āĻā§āύ āĻŦā§āϰāĻžāĻāĻāĻžāϰ āĻŦāĻžāύāĻžāύ⧠āĻšāϝāĻŧ āϤāĻžāĻšāϞ⧠āϤāĻžāĻā§ āϏā§āϏā§āϝāĻžāϞ āĻāϝāĻŧā§āĻŦ āĻŦā§āϰāĻžāĻāĻāĻžāϰ āĻŦāϞāĻž āĻāĻžāϰāĻžāĻĒ āĻšāĻŦā§ āύāĻžāĨ¤ āĻāĻŋāύāĻŋāϏāĻāĻž āĻŦā§āĻļ āĻŽāĻāĻžāϰ āĻŽāύ⧠āĻšāĻā§āĻā§ āύāĻžāĨ¤ āĻšā§āϝāĻžāĻ āĻ āĻŋāĻ āĻāĻ āϰāĻāĻŽ āĻāĻāĻāĻž āĻāϝāĻŧā§āĻŦ āĻŦā§āϰāĻžāĻāĻāĻžāϰ āĻšāϞ⧠āĻĢā§āϞāĻ(Flock)āĨ¤ āĻĢā§āϞāĻ āĻĢāĻžāϝāĻŧāĻžāϰāĻĢāĻā§āϏ āĻŦā§āϏāĻĄ āĻāĻāĻāĻŋ āĻŦā§āϰāĻžāĻāĻāĻžāϰāĨ¤ āĻāϰ āĻŽāĻžāύ⧠āĻšāĻā§āĻā§ āĻĢāĻžāϝāĻŧāĻžāϰāĻĢāĻā§āϏā§āϰ āϏāĻŦ āϏā§āĻŦāĻŋāϧāĻžāϝāĻŧ āĻĒā§āϰāĻžāϝāĻŧ āĻāϤ⧠āĻĒāĻžāĻāϝāĻŧāĻž āϝāĻžāĻŦā§ āĻāĻĒāϰāύā§āϤ⧠āĻŦāĻŋāĻļā§āώ āĻāĻŋāĻā§ āϏā§āĻŦāĻŋāϧāĻž āĻĻā§āĻāϝāĻŧāĻžāϰ āĻāύā§āϝ āĻĢā§āϞāĻā§āϰ āĻāύā§āĻŽāĨ¤ āĻĢā§āϞāĻ āĻāϰ āϞā§āĻā§āϏā§āĻ āϏā§āĻā§āϝāĻžāĻŦāϞ āĻāĻžāϰā§āϏāύ āĻšāϞ⧠āĻĢā§āϞāĻ ā§¨.ā§Ļ āϝāĻž āĻĢāĻžāϝāĻŧāĻžāϰāĻĢāĻā§āĻ¸ā§Š āĻāϰ āĻāĻĒāϰ āĻāĻŋāϤā§āϤāĻŋ āĻāϰ⧠āĻŦāĻžāύāĻžāύā§āĨ¤ āϝāĻĻāĻŋ āĻāĻāύ⧠āĻĒā§āϰāĻž āĻŦā§āϝāĻžāĻĒāĻžāϰāĻāĻž āĻ
āύā§āĻā§āϰ āĻāĻžāĻā§ āĻĒāϰāĻŋāϏā§āĻāĻžāϰ āύāĻž āĻšāϝāĻŧ āϝ⧠āĻāĻŋāĻāĻžāĻŦā§ āĻāĻāĻāĻŋ āĻŦā§āϰāĻžāĻāĻāĻžāϰ āĻāĻĒāύāĻžāĻā§ āϏā§āϏā§āϝāĻžāϞ āύā§āĻāĻāϝāĻŧāĻžāϰā§āĻ āϏāĻžāĻāĻāĻā§āϞ⧠āĻāĻŋāĻāĻŋāĻ āĻāϰāϤ⧠āϏāĻžāĻšāĻžāϝā§āϝ āĻāϰāϤ⧠āĻĒāĻžāϰ⧠āϤāĻžāĻšāϞ⧠āĻāĻ āϞāĻŋāĻā§āĻ āĻĨā§āĻā§ āĻāĻāĻā§ āĻĸā§āĻ āĻŽā§āϰ⧠āĻāϏā§āύāĨ¤
Continue reading
browser
There are 2 posts tagged browser (this is page 1 of 1).
Detect browser name and version using js
I was trying to detect browser version and browser name using java script. I got so many techniques but I am happy with jquery’s one. It’s pretty simple and small block of code. Just check the bellow code that I got from jquery. As it is not possible to use the whole js library all the time but I like to use some part of it or follow the techniques for cross browser tasks. đ
[sourcecode language=’css’]
//Detect browser version
var userAgent = navigator.userAgent.toLowerCase();
// Figure out what browser is being used
var browser = {
version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
safari: /webkit/.test( userAgent ),
opera: /opera/.test( userAgent ),
msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
};
alert(‘Browser Version=’+browser.version.toString()+ ‘ Safari=’+(browser.safari? ‘Yes’: ‘No’)+’ Opera=’+(browser.opera? ‘Yes’: ‘No’)+’ IE=’+(browser.msie? ‘Yes’: ‘No’)+’ FF=’+(browser.mozilla? ‘Yes’: ‘No’));
//end browser detection
[/sourcecode]
Edit: Here one thing you may be confused about the test() method. It’s a builtin function in js. The test() method is used to search for a match of a regular expression in a string.
Here’s some links about Test();