Advertisement

05.09.2008 at 09:22AM PDT, ID: 23389997 | Points: 500
[x]
Attachment Details
I want to hide status bar ,address bar on page load ,can anyone provide a sample code for that?
Zone: JavaScript
Tags: Javascript, IE 6.0
I want to hide the status bar and the address bar on page onload .I want it to work in IE 6.0.Mozilla and Netscape .Can anyone provide the sample .I don't want to open a new window.I want to hide it in the same window which means I don't want to go to any other html page .In the same page itself on click of a link ,i need to get the contents available there with no title bar and address bar .
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: nidhulatm
Question Asked On: 05.09.2008
Participating Experts: 4
Points: 500
Views: 0
Translate:
Loading Advertisement...
05.09.2008 at 09:27AM PDT, ID: 21534426

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:29AM PDT, ID: 21534447

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:47AM PDT, ID: 21534609

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 10:10AM PDT, ID: 21534793

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 12:31PM PDT, ID: 21535791

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 12:41PM PDT, ID: 21535871

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 06:11PM PDT, ID: 21544152

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.11.2008 at 08:02PM PDT, ID: 21544443

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.09.2008 at 09:27AM PDT, ID: 21534426

Rank: Genius

You cannot do this on the same window. Javascript cannot access the toolbar elements. You will need a popup window => window.open()
 
05.09.2008 at 09:29AM PDT, ID: 21534447
I'm 99% sure that you can only control the appearance of those things if you open a new window with JS.  Maybe you could open a new one the way you like and close the old one?

You could also try instructing the user to maximize the window (really maximize, ie, F11 on Win boxes), but that wouldn't hide tabs or the address bar, just shrink them.
1:
2:
newWin = window.open('somepage.html','bob','resizable');
self.close();
Open in New Window
 
05.09.2008 at 09:47AM PDT, ID: 21534609
with new window using window .open()
using the window.open("#","_blank",'resizable=yes,top=0,left=0,width=1014,height=710');I am getting a new window .I dont want a new window to be opened.either i need to close the parent window and open the new window  with the parent window contents,or the parent window with adress bar removed on load.Also if i use self.close () which window gets closed?
 
05.09.2008 at 10:10AM PDT, ID: 21534793

Rank: Guru

Using a window, you cannot do it any other way. Open the new window, then close the parent window once it is loaded.

You can do this by opening a DIV instead of a window, but that takes a bit more work. Solutions abound here and on the web. Search for:

dhtml instead of window.open

Here is one link:

http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
 
05.09.2008 at 12:31PM PDT, ID: 21535791
Someone please address why this is such a bad idea from a user and accessibility perspective ...

There is absolutely no business or technical reason to hide the address bar and status bar, and just keep in mind that anything you try can and will be bypassed anyway, by people in the know and with any number of tools such as local filtering proxies and certain browsers (Such as Opera and FireFox) that don't limit the user's experience to what the web page demands.  And absolutely never rely on JavaScript for "security" (hiding sensitive data, blocking access to pages, etc) because it is never secure and can always be worked around.
 
05.09.2008 at 12:41PM PDT, ID: 21535871

Rank: Guru

Whoa - we can only speculate as to the reason <nidhulatm> asked this question.

If <nidhulatm> wants to provide an alternative to the MSgBox and/or alert() functions, is that a bad idea? I do not think so.

If <nidhulatm> is creating an application for an inTRAnet, then is this a bad idea - to keep the Poor User from wandering away from the application? I do not think so.

Far be it from me to generalize about usability and what the Poor User wants, or to blithely rely on a browser for security.

And while I, too, have been known to show strong feelings about certain things, I strive to use restraint when participating in a thread as to not be accused of hijacking.
 
05.11.2008 at 06:11PM PDT, ID: 21544152
I just think that this question needs to be investigated a little deeper - instead of "how do I do this," instead describe what the problem is or what the goal is and then find the best solution, because hiding the address and status bars may not be the best solution (it almost never is).
 
05.11.2008 at 08:02PM PDT, ID: 21544443

Rank: Guru

Exactly - until <nidhulatm> tells us the reason, it is pointless to speculate (pun intended) ;-)
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628