Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create browser window without navigational buttons?

Status
Not open for further replies.

StevenB

IS-IT--Management
Sep 25, 2000
247
US
Is anyone aware of a way within either ASP or JavaScript to open up a window in IE 5 that has no browser buttons?

By browser buttons, I mean the navigational buttons like "Back" "Forward" "Refresh" etc.

I've found some JavaScript that seems to work somewhat, but I've only been able to make it open up an additional window, and I'm hoping I can find a way to have it affect the current window instead.

Thanks!

Here is that code:
-----------------
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

var goodBrowser = 1;
var msg = &quot;This demonstration will work best if you use Netscape Navigator Version 4 (and higher) OR Microsoft Internet Explorer Version 5 (and higher). &quot; +
&quot;Users of other browsers may still view the pages, but some of the features might not work as expected.&quot;;

function isNav() {
return (navigator.appName == &quot;Netscape&quot;)
}


function isMSIE() {
return (navigator.appName == &quot;Microsoft Internet Explorer&quot;)
}

function isNav4Min() {
return (isNav() && parseInt(navigator.appVersion.charAt(0)) >= 4)
}

function isMSIE5Min() {
return (navigator.appVersion.indexOf(&quot;MSIE 5&quot;) != -1)
}

function newBrowser(URL, windowName, windowAttributes, closePrevious) {
window.open(URL, windowName, windowAttributes)
if (closePrevious == true)
self.close();
return false;
}

function testBrowser() {
if (isMSIE5Min() || isNav4Min()) {
newBrowser('Core/login.htm', 'InterAction', 'scrollbars, status, height=740, width=1020', 0);
}
else return 0;
}
</SCRIPT>
[sig][/sig]
 
There is no direct way to change the settings of the current window, at least not yet, but I'm sure the Department of Mindless Extensibility at Microsoft will make that happen anytime now, for IE. One central point of the web is that it's not meant to intrude on the way the user sets up his/her computer.

The easiest way to handle your problem is to open a new window with your custom settings while simultaneously closing the previous one. The only drawback is that the users will be prompted as to whether they want to allow the window to be closed or not.

However, if you REALLY want to get into it, it wouldn't surprise me if there is a (somewhat torturous) way to do this--of course, different for each browser. Netscape 4.x allows extra functionality with the use of 'signed' scripts, which ask the user to grant extra control to Javascript, while IE can do similar things with ActiveX. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top