Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop  |  DHTML, HTML & CSS

CODEBASE Attribute | codeBase Property


Retrieves the URL referencing where to find the implementation of the object.

Syntax

HTML<ELEMENT CODEBASE = sURL[#version=a,b,c,d] ... >
Scripting[ sURL = ] object.codeBase

Possible Values

sUrlURL from which the component should be downloaded.
aHigh-order word of the major version of the component available at the specified URL.
bLow-order word of the major version of the component available at the specified URL.
cHigh-order word of the minor version of the component available at the specified URL.
dLow-order word of the minor version of the component available at the specified URL.
-1,-1,-1,-1Values for a,b,c,d indicating that the component should be downloaded from the server if the release date is later than the installation date on the client machine. If the component is installed on the client machine, and the release date is the same or earlier than the installation date, only an http header transaction occurs.

The property is read-only with no default value.

Remarks

Applets do not support versioning information supplied as part of the URL.

Example

The code below specifies the download location for the Common Dialog control using the CODEBASE attribute.

Sample Code

<OBJECT ID="CommonDialog1" WIDTH=32 HEIGHT=32
    CLASSID="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB"
    CODEBASE="http://activex.microsoft.com/controls/vb5/comdlg32.cab
    #version=1,0,0,0">
</OBJECT>

Applies To

See Also

Specifying FileVersion and #Version for Component Download Non-SBN link


Does this content meet your programming needs? Write us!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site