开发者

What is self.moveBy and why doesn't it work on Chrome?

I found the self.moveBy function here.

Somehow the code doesn't seem to work on Chrom开发者_如何学JAVAe, although self.moveBy does exist on Chrome!

What exactly is self.moveBy, and why doesn't it work on Chrome?


it is a javascript security setting that is disabled by default will be disabled by default in firefox too (some late Nightly version) including:

window.moveBy
window.moveTo
window.resizeTo
window.resizeBy


It's the same as window.moveBy, and moves the current window by a specified amount. See https://developer.mozilla.org/en/DOM/window.moveBy

See also, What's the difference between self and window?

I don't think you can get it to work in chrome, and I can see why they would want to disable it, although it is fun ;-)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜