![]() |
Before learning the web Workers first, we need to check about the browser support. So following is the code which checks whether your browser is supporting or not. |
<div id="supported"></div>
<div id="unsupported"></div>
<button onclick="worker();">click me</button>
<script type="text/javascript"> function worker() { if(typeof(Worker)!=="undefined"){ document.getElementById("supported").innerHTML="Supporting the browser"; } else { document.getElementById("unsupported").innerHTML="Not supporting";} }
</script>
Category
: |
Web Tutorial |
Sub Category
: |
HTML Web Workers API |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference