Leave as much changing of a user's preference out when opening a new window. If that window is the last one closed when exiting your browser, it will then become the default preferences when reopening your browser. It is bad enough that you are turning a user's address bar off in the first place.
Code:
window.open(myurl,"preview",', location=no');