Re: not to show menubar,addressbar & etc of browser without any security confirm



On Mon, 12 Nov 2007 22:03:45 -0800, lale.kat@xxxxxxxxx wrote in
comp.programming:

I want my Browser not to show menubar,addressbar,toolbar and etc. when
the first page of my site become loaded.

Tough. I control what I see on my computer. It's mine, I paid for
it, you have no right to control it.

I use this code for it:
<html>
<head>
<title>Haniye</title>

<script type='text/javascript'>
<!--
function SetWindow_Browser()
{

var height = 700 //Set height
var width = 700 //Set width
var name = "winname" //Set window name
var top = 20 //Set distance from top
var left = 20 //Set distance from left

//script revision by A. Kuehler, XombieRx
if(navigator.appName == "Netscape") //start handling for Netsacpe
and Mozilla
{

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite")
window.menubar.visible = false;
window.locationbar.visible = false;
window.scrollbars.visible = false;
window.personalbar.visible = false;
window.statusbar.visible = false;
window.toolbar.visible = false;

netscape.security.PrivilegeManager.revertPrivilege("UniversalBrowserWrite")
resizeTo(width,height); //replace with actual numerical values
}//end if handling for Netscape/Mozilla

else
{ //for all other browers
//script provided by superslamwich
if(document.location.search=='')
{
window.open(document.location + "?
newwin=true",name,"fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width="
+ width + ",height=" + height + ",left=" + left + ",top=" + top);
self.opener=""
self.close(
}
else
{
window.opener.close();
}
}//end handling for all other browsers
}
-->

</script>



<BODY onload="SetWindow_Browser();">
</body>
</html>
-----------------------------------------------------------------------------
when I use this code in Mozilla firefox ,It opens dialog confirm, with
this title:"internet security" and with this text:"A script "file://"
is requesting enhanced abilites UNSAFE and could be used compromise
your mashine or data"
& ask me to allow or deny it.

That won't happen when I load your page with Firefox, thanks to
Adblock Plus. Hopefully, no savvy Firefox user surfs the web without
it.

if I push allow botton It will works but I don't want to show this
dialog ,I wanna do it directly without any question.
how could I do it?Is it possible?and do u know another way to hidden
menubar,toolbar,ect?
and also when I use this code in Internet Explorer it appears menu at
the top of Browser 's window with this content:
"to help protect your security ,Internet Exlprer has restricted this
file from showing active content that could access your computer click
here
for option" and when I seclect "allow blocked content",It will does
something that I want.but I don't want to show this menu too.thx

What makes you think you have the right to do this? You do not own,
and have no right to dictate the operation of, other people's
computers. This is the sort of technique that spammers, phishers, and
criminal sites seeking to install spyware, keyloggers, and other
malware use.

People trying to do this sort of thing deserve to fail.

Of course, for really suspect sites, there's Opera where I have set
the options to prevent any site from turning off the address and tool
bars, even if I have enabled scripts.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
.



Relevant Pages

  • Re: Keeping out unwnated intruders "web sites" that invade!
    ... I use FireFox from Mozilla...it is a lot safer on ... If I go to www.webopedia.com using IE I get debug pop-up aftr debug pop-up ... > takes control of your Internet Explorer like it was childs ...
    (microsoft.public.win2000.security)
  • Textareas Height and Width not Sent to Firefox
    ... When my web application is invoked by Firefox the height and width ... information is passed to Internet Explorer but not to Firefox. ... The ASP.NET control is ... For Firefix it renders ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Breaking out of frames
    ... Are you using Internet Explorer? ... Because if you switched to Firefox, ... you'd gain almost complete control over all of the problems that you ...
    (alt.html)
  • IObjectSafety and Internet Explorer
    ... Problems with ActiveX in Internet Explorer are nothing new. ... How Internet Explorer Determines If ActiveX Controls Are Safe ... Provide the following registry keys for the control's CLSID under the ... The following key marks the control safe for scripting: ...
    (Bugtraq)
  • Still cant access Microsoft Office On-line
    ... restore points, ... used by Internet Explorer", the "Microsoft Office Template & Media Control ... Office Template & Media Control is NO LONGER listed at all. ...
    (microsoft.public.publisher)