kdacool.blogg.se

How to block a website on microsoft edge windows 10
How to block a website on microsoft edge windows 10













how to block a website on microsoft edge windows 10

Return "Edge " + parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10) ĭocument.getElementById("info").innerHTML +="Welcome to the site." ĭocument.getElementById("info").innerHTML += "Dear user you are using " + result + " This browser is not supported by this site. Return "IE " + parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10)

how to block a website on microsoft edge windows 10

Return "IE " + parseInt( ua.substring(msie + 5, ua.indexOf('.', msie)), 10) If it is any other browser then it will let users visit the site. Then if it is an IE or Edge legacy browser then you can show a message to the users to use the MS Edge Chromium browser.

how to block a website on microsoft edge windows 10

I suggest you try to check the substring of the user agent may help to identify the IE and Edge legacy browser.















How to block a website on microsoft edge windows 10