|
Latest post 04-11-2007 2:28 AM by cruizer. 2 replies.
-
04-11-2007 1:42 AM
|
|
-
Lotski


- Joined on 04-11-2007
- Posts 10
- Points 140
|
Hi! I'm new here at devpinoy. I was just wondering if anyone knows how to hide the status and address bar of IE 7. Also, how could we hide the status bar of firefox.
Thanks in advance.
|
|
-
-
modchip


- Joined on 02-09-2006
- Ivalice
- Posts 710
- Points 10,110
|
This script will do some good stuff for you, it will center the popup, and do some other stuff... But, the status bar still shows in IE7 eventhough status=no is present. var newwindow; function poptastic(url, w, h) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; newwindow=window.open(url,'kahitano', 'width=50,height=50,top=0,left=0,status=no,toolbar=0,menubar=0,location=0,resizable=no,directories=no,scrollbars=yes'); newwindow.moveTo(wint,winl); if (window.focus) {newwindow.focus()}
or var newwindow; function poptastic(url, w, h) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; var winloc = 'width=' + w + ',height=' + h + ',top=' + wint + ',left=' + winl + ',status=no,toolbar=0,menubar=0,location=0,resizable=no,directories=no,scrollbars=yes'; newwindow=window.open(url,'kahitano', winloc); newwindow.moveTo(wint,winl); if (window.focus) {newwindow.focus()}
Good luck and welcome to devpinoy! :D
|
|
-
-
cruizer


- Joined on 12-14-2005
- Singapore
- Posts 944
- Points 22,590
|
i think the inability to hide the status bar is a safety measure to prevent spoofing or social engineering attacks by malicious web sites (e.g. it can imitate the appearance of the Windows login dialog box or some banking web site, and harvest your username/password). you can hide it but only if the user explicitly enables some browser option/setting, which you cannot do programmatically from your web page (for obvious reasons).
http://devpinoy.org/blogs/cruizer
Naglalayong buksan at palayain ang kamalayan ng Pinoy .NET developer
|
|
Page 1 of 1 (3 items)
|
|
|