zencart 浏览器屏蔽

zencart 浏览器屏蔽

<script type=”text/javascript”>
if (navigator.language)
var language = navigator.language;
else
var language = navigator.browserLanguage;
if(language.indexOf(‘zh’) > -1)document.location.href = ‘nddbc.html’;
</script>

你可能感兴趣的:(JavaScript,html,浏览器)