I have this basic javascript code: window.resizeTo(1000,800) set to run when the page loads and it works perfectly in Firefox but not in Safari.
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The browser blocks this, quite intentionally. Please don’t try to resize the user’s window, this will only lead to them hunting you down with a salad fork.
Keep in mind that most browsers by default use tabs, what gives your site the right to resize my other tabs? When you think about it from the users’ point of view, you should see why browser makers have intentionally started blocking this unwanted behavior (at least at the top/tab level, resize what you want inside your own page, e.g. an
<iframe>).