i want whenever i Login salesforce there will be a popup that you are using chrome browser but i want this will popup only once and i tried this code
<apex:page >
<div id="browserid">
<script type="text/javascript">
txt = navigator.userAgent;
var counter =0 ;
if (txt.indexOf("Chrome")!=-1)
{
text="Chrome"
window.onload = function(){
if(counter == 0){
window.alert("Currently you are using " +text+ "",width=300,height=200);
counter++;
}
}
}
}
</script>
</div>
</apex:page>
but i am getting again and again popup. Please help me how to solve this problem?