Today we know about of detect google chorme browser by javascprit with click by button.
For this we need write some javascript code.
Are you ready for this ?
okey, I know you are very exciting right now.
Now open your notepad or any text editing application for write below code. I'm using Visual studio code for this project.
Code is :
<input type="button" value="Click Me" onclick="my()">
<script>
function my()
{
var isChromium = window.chrome;
if(
isChromium !== null &&
typeof isChromium !== "undefined" )
{
alert("You are using google chorme");
}
else
{
alert("It's not google chrome");
}
}
</script>
Comments
Post a Comment
If you any doubt of any topic then you can comment me.