You cannot change it in the existing browser window you are currently running in. You would need to popup a new window, setting the configuration accordingly. Something like this:
window.open ("http://www.codeproject.com", "codeproject","location=0,status=1,scrollbars=1, width=600,height=400");
Good luck!