spacer

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

home / programming / javascript / professional / chap4 / 1 1234
[next]

Search
The Business Internet

Developer News
SaaS Tool Offers Custom Database Development
Microsoft’s Automated Agent: Can We Talk?
Borland Finally Sells CodeGear

Professional JavaScript

A JavaScript interpreter can't do much in a vacuum; it needs to work with a host program. The host program supplies all the interesting objects, functions and data that the interpreter operates on. Through these things, scripts can read input from a user, display output to a user, and perform computations in between.

Mainstream Browsers and JavaScript

JavaScript has its origins in the Internet and the World Wide Web, so it's no surprise that Web browsers are the places JavaScript is most frequently used. In most cases, this is achieved by adding JavaScript scripts to documents that normally only contain HTML tags and content.

Of the many, many Web browsers available; Microsoft's Internet Explorer and Netscape's Navigator and Communicator have the lion's share of the market. JavaScript's impact on these mainstream browsers is considered the 'ordinary case' and we'll be looking at those browsers primarily. In this chapter we'll also briefly consider some of the less well known alternatives. Alas, unless their popularity improves, the lesser known browsers are likely to occupy only small niches in the browser marketplace.

Adding JavaScript to HTML

An HTML document that contains JavaScript can be looked at from two points of view. Looked at from the outside, as a mere textual document, there are only select places in an HTML document where JavaScript scripts can be added. Looked at from the inside as a collection of tags and content items, an HTML document consists of numerous interesting features that can be manipulated by any scripts that can get at those features. It is the former view that is described here.

Since JavaScript scripts can only be placed in HTML documents in certain spots, opportunities for acting upon the document or the browser displaying the document are limited. However, what JavaScript can do in an HTML document is:

  • Affect document layout when HTML tags and content are still being loaded by the browser.
  • Affect document layout after HTML tags and content have been loaded by the browser.
  • Affect the number of browser windows and window-like objects currently displayed.
  • Capture, mimic and modify actions the user of the browser might make.
  • Perform basic automation and basic feedback tasks.
  • Improve on the simple forms that HTML supports.
  • Forward user actions onto applets, plug-ins and other foreign bodies embedded in the document.

Let's throw a little jargon in at this point. An HTML document may have JavaScript scripts embedded in it. The browser running these JavaScript/HTML pages hosts a JavaScript interpreter or has a JavaScript interpreter embedded in it.

home / programming / javascript / professional / chap4 / 1 1234
[next]

Copyright 1999 (1st Edition) and 2001 (2nd Edition) Wrox Press Ltd. and

JupiterOnlineMedia

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

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
How to Create an Ajax Autocomplete Text Field: Part 6 · Software Engineering for Ajax · Perl Pragma Primer
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Using File Virtualization for Disaster Recovery · VoIP Security: SIP—Versatile but Vulnerable · Around the World in 80 Nodes


Created: February 12, 2001
Revised: March 5, 2001


URL: http://webreference.com/programming/javascript/professional/chap4/