PDA

Click to See Complete Forum and Search --> : how do i disable the internet explorer toolbars


tmashley
Jun 2nd, 2003, 09:43 AM
hello,

how do i disable the internet explorer toolbars (address bar icons, status etc.)

the thing is i need to do this when i load the internet explorer for the first time

so a can't use window.open(args)

i need to open a shortcut from a desktop that opens internet explorer without any "bars"

please help me,
thanks,

Tom

Serge
Jun 2nd, 2003, 01:44 PM
Unfortunately, you can't. But what you can do is to close the current window and open your page in another window without toolbar and location. For example you can pass a queryString parameter that will tell your program to close the window and open another one.


Response.Write("<script language=javascript>window.open('YourPage.aspx', null, 'location=no;status=no;toolbar=no')</script>");
Response.Write("<script language=javascript>self.close()</script>");

tmashley
Jun 3rd, 2003, 04:03 AM
is there any way of doing this without displaying a pop up message saying that the other window is closing?

lpere68
Jun 3rd, 2003, 04:56 AM
Put the below in the new window opened


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<SCRIPT LANGUAGE="JavaScript">
<!--
function closeMain()
{
window.opener.opener='stupid_machine';
window.opener.close();
window.close();
}
//-->
</SCRIPT>
</HEAD>

<BODY onLoad="closeMain();">

</BODY>
</HTML>