how to disable menu bar in browser using javascript

JavaScript
window.open('default.aspx', 'google', 'height=800px,width=480px,location=no,toolbar=0,directories=no,status=no,menubar=no,resizable=no,scrollbars=no');

Source

Also in JavaScript: