Skip to content
Go to file
Cannot retrieve contributors at this time
23 lines (19 sloc) 646 Bytes
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- get consoleForWorker -->
<script src="../console4Worker-page.js"></script>
<script language="javascript">
// init the worker
var worker = new Worker("worker.js");
// bind the console4Worker to get console.* from worker
// example of message handler
worker.addEventListener('message', function(event){
// filter this event if it is from console4Worker
if( console4Worker.filterEvent(event) ) return;
console.log("event non console4Worker",;
}, false);
You can’t perform that action at this time.