-
Disable explorer menubar
I am developing an intranet site where all users will have explorer using asp and javascript for client stuff.
Is it possible to disable/remove the menu and navbar in explorer in either asp or javascript.
I know I can do it in .net but was wondering if I could do it with either of these languages.
-
You mean internet explorer, right ?
But yes, it's possible using JavaScript(ASP is server side...), just open the window using:
Code:
window.open("http://www.vbforums.com","my_new_window","toolbar=yes, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes")
If you want this done when a page loads just put it in the body load... like this:
Code:
<html>
<head>
<script>
function newpage() {
window.open("http://www.vbforums.com","my_new_window","toolbar=yes, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes");
window.close;
}
</script>
</head>
<body onLoad="newpage();">
Opening new window...
</body>
</html>
Hope this helps
Cheers!