spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / programming / javascript / diaries / 7

[previous] [next]

Senior Consultant/Information Security - permanent position (TX)
Next Step Systems
US-TX-Irving

Justtechjobs.com Post A Job | Post A Resume
Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

The JavaScript Diaries: Part 7

By 

defaultStatus

browser status bar

The status bar is located at the bottom of the browser. Usually, it displays the URL of a link on the Web page when the mouse hovers over it. The defaultStatus property sets a message to display in the status bar when nothing else is displayed, such as a welcome message or instructions to the visitor. It can be set when the page is initially loaded or when some other event happens. To set it when the page is loaded, you can use the following script in the <body> tag:

<body onLoad="window.defaultStatus='Welcome to my Web page!';">

Be aware, however, that many users prefer to see the URL in the status bar rather than a message.

frames

This property contains an array of all the frames in the current window. We'll look at this in more detail later when we learn about arrays.

name

This property contains the name of the window. The name of the window should not be confused with the title of the page, which is located within the <title></title> tags. The name is used by the browser to reference the window.

You can use the name property to retrieve the name of the current window or to assign a name to the window. It's useful when using frames and popup windows.

It's important to note that the main window in the browser does not have a name. Using the name property without first declaring a name for the window will return an empty string.

There are several techniques used in assigning a name to a window. One method would be to place the following script in the <head> section:

window.name="The Main Window";

Then, if you want to display the name of the window on the page, place this script in the <body> section:

document.write("The name of this window is " + window.name);

The process used here is pretty straightforward. Before the page loaded, we used the name property of the window object to assign a name to the current window. Then, once the page was loaded, we wrote the name of the window to the Web page.

opener

This property is used in popup windows to refer to the window that originally opened it. If the window was opened by the user, it will return a value of null as there is no valid window (not valid, meaning that it was not opened by a script). See also the closed property.

home / programming / javascript / diaries / 7

[previous] [next]

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Fixing MySQL Replication · Firewall Guide: First Steps to Securing the Enterprise · VoxOx Tames the Tumultuous Communications Tangle

Created: July 22, 2005

URL: