<!DOCTYPE html>
<html>
<body>

<script>
  menubar.visible = 0;
  window.alert(menubar.visible);
</script>

</body>
</html>