开发者

Strange Behaviour w/ JavaScript workers

开发者 https://www.devze.com 2023-03-03 18:22 出处:网络
I created a JavaScript worker. When I visit the page in the browser it tries to print the page. Strange right? You ca开发者_JAVA技巧n see the page in action here:

I created a JavaScript worker. When I visit the page in the browser it tries to print the page. Strange right? You ca开发者_JAVA技巧n see the page in action here:

http://galesupport.com/fb/workers.php

Can someone please explain this to me? Thanks :)


The print() function (of the window object) in JavaScript prints the page, so it's not that suprising. Maybe you wanted document.write instead?

0

精彩评论

暂无评论...
验证码 换一张
取 消