MACROMEDIA HOMESITE Using Manual page 262

For windows 98, windows me, windows nt 4.0, windows 2000, and windows xp
Table of Contents

Advertisement

242
}
}
HTMLGetAttribute
Syntax
HTMLGetAttribute(const wsInTag, wsAttr: WideString): WideString;
Description
Returns the value for a particular attribute of a tag. For example,
HTMLGetAttribute("<TABLE WIDTH=100>", "WIDTH");
returns 100.
Example
function Main(){
}
HTMLGetTitle
Syntax
HTMLGetTitle(const wsFile: WideString): WideString;
Description
Returns the contents of an HTML file's
Example
function Main() {
Var sFile;
Var sTitle;
sFile = "C:\\Temp\index.html";
with (Application) {
}
}
InputBox
Syntax
InputBox(const wsCaption, wsPrompt, wsDefault: WideString): WideString;
Description
Displays a dialog box for obtaining user input.
Example
function Main() {
Var sInput;
Var sOutput;
}
var sWidth;
with (Application){
// Get width attribute of a table tag
sWidth = HTMLGetAttribute("<table width=100>", "width");
}
sTitle = HTMLGetTitle (sFile);
// Store the contents inside <INDEX> in sTitle
Chapter 15 Scripting the Visual Tools Object Model
tag. This only operates on local files.
title

Advertisement

Table of Contents
loading

This manual is also suitable for:

Homesite+ for dreamweaver mx

Table of Contents