I'm trying to block a website on Chrome using HTML. When I try, a pop-up appears. If I click OK, the site is blocked, but if I click cancel, it continues to load. How can I resolve this issue?
See below for the code and screenshot:
<html>
<script>
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {
//alert('IE ' + parseInt(ua.substring(msie + 5, ua.indexOf(".", msie))));
var test="Hi there";
}
else {
var result = confirm('Please only use Internet Explorer!');
}
if (result)
window.location.replace("ie_browser.html");
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</html>