1

I am using Aurora 14.0a2 as my default browser (its the early release of firefox) I have went into my about:config and have changed the value of services.sync.prefs.sync.dom.disable_window_move_resize; to false Yet when I run my website the resizeTo(); function still doesn't work

here is my code: jsfiddle_link

function onload(){
    window.resizeTo(600,800);
}

I also tried it in other browsers: Chrome (no surprise it didn't work since chrome never supports it) opera IE 8 Safari

None of which worked

I also tried making a link from a different website linking my website then clicking on it but it did not do the trick

any ideas?

4

1 に答える 1

1

javascriptのサイズ変更機能は、ポップアップウィンドウで開いた場合にのみ機能し、メインのブラウザウィンドウで開いた場合には機能しないと思います。このリンクhttp://www.javascripter.net/faq/windowresizeto.htmを確認してください。私があなたを助けると思うサンプル。

于 2012-05-15T07:03:37.117 に答える