is it possible to self disable the toolbar and rezise the window?

i know this is possible by calling the new window by using window.open('','toolbar=no,width=100px,height=100px')

but how can i do this on window itself when its was called.like during pag load event.