Skip to Main Content
VBScript in a Nutshell, 2nd Edition
book

VBScript in a Nutshell, 2nd Edition

by Paul Lomax, Matt Childs, Ron Petrusha
March 2003
Intermediate to advanced content levelIntermediate to advanced
512 pages
14h 30m
English
O'Reilly Media, Inc.
Content preview from VBScript in a Nutshell, 2nd Edition

Chapter 8. VBScript with Internet Explorer

VBScript was initially intended for client-side scripting. It provided a Visual Basic-like method for HTML developers to add interactivity to their web pages. The hope was that since many developers were familiar with Visual Basic, a scripting language modeled after the application development tool would have a wide audience. The basic concept proved to be correct, although client-side scripting with VBScript never achieved the popularity its developers had hoped for. This is because client-side scripting with VBScript has a major downside: VBScript is supported only in Internet Explorer. This means that you have to either force your users to a specific browser (which is really only possible on intranets), or script with both VBScript and some flavor of ECMAScript to make sure that you are providing the same functionality to all users. This, however, does not mean that scripting in ECMAScript will answer all of your compatibility issues, either.Netscape Navigator and Internet Explorer each have their own flavor of ECMAScript, which, while mostly similar, still have their differences. Anyway, we’ll assume that if you are reading this chapter that you are interested in client-side scripting in Internet Explorer.

The <SCRIPT> Tag

Very much like the <A> tag is used to delimit a hyperlink on your web page, the <SCRIPT> tag is used to contain your script. The <SCRIPT> tag allows scripts to be written inline with the rest of your HTML document, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VBScript in a Nutshell

VBScript in a Nutshell

Matt Childs, Paul Lomax, Ron Petrusha
Microsoft® PowerShell, VBScript and JScript® Bible

Microsoft® PowerShell, VBScript and JScript® Bible

William R. Stanek, James O'Neill, Jeffrey Rosen

Publisher Resources

ISBN: 0596004885Errata Page