共用方式為


LookupSetter method

Allows developers to retrieve a custom Microsoft JScript function associated with a Document Object Model (DOM) property. The custom function is used to set a value of a property or function.

 

Syntax

HRESULT retVal = object.LookupSetter(propname, ppDispHandler);

Parameters

  • propname [in]
    Type: BSTR

    Name of the property or function to be retrieved.

  • ppDispHandler [out, retval]
    Type: VARIANT

    Name of the JScript function that provides the new functionality.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

See also

style

rule

currentStyle

attribute

TextNode

attributes

IHTMLDOMConstructorCollection::StaticNodeList

children

defaults

IHTMLDOMConstructorCollection::HTMLGenericElement

styleSheet

IHTMLDOMConstructorCollection::HTMLLinkElement

IHTMLDOMConstructorCollection::HTMLFormElement

IHTMLDOMConstructorCollection::HTMLTextElement

img

XMLHttpRequest

body

font

a

label

ul

ol

li

blockQuote

div

dd

dt

br

dl

hr

p

elements

hn

select

option

input

textArea

button

marquee

html

head

title

meta

base

isIndex

nextID

baseFont

event

screen

window

DocumentCompatibleInfo

documentCompatibleInfoCollection

document

embed

areas

map

area

caption

comment

ins

del

span

table

col

tBody

tFoot

tHead

tr

td

script

noScript

object

param

frame

iframe

fieldSet

legend

frameSet

bgSound

style

XDomainRequest

Storage

article

aside

figcaption

figure

footer

header

hgroup

mark

nav

section

Other Resources

Document Object Model Prototypes, Part 1: Introduction

Document Object Model Prototypes, Part 2: Accessor (getter/setter) Support