Template:Browser Detection: Difference between revisions
Content deleted Content added
Seddon (WMF) (talk | contribs) No edit summary |
Seddon (WMF) (talk | contribs) No edit summary |
||
Line 1:
<html><script>$(function () {
//Check if browser is Chrome
if (navigator.userAgent.search("Chrome")
console.log('This is a Chrome Browser')
}
//Check if browser is Firefox
else if (navigator.userAgent.search("Firefox")
console.log('This is a Firefox Browser')
}
//Check if browser is Safari
else if (navigator.userAgent.search("Safari")
console.log('This is a Safari Browser')
}
})
</script></html>
|