Hello everyone! I saw a website where the browser window moved around on the screen whenever I went to the URL, and I was wondering if this was done with Javascript, and how it could be done. Any information? Thanks.
Moving Around Browser Windows with Javascript
You can indeed move the browser window using Javascript (if the browser allows it). For example, with:
| Code: |
|
window.moveTo(100,100) |
I wouldn't recommend it though. People generally don't like their browser windows being moved about. I'm one of those people. It's got the down from me.
Secure browsers don't allow this kind of stupid scripts.
