beautypg.com

Dom.setlinkhref(), Dom.setlinktarget(), Dom.setlistboxkind() – Adobe Dreamweaver API Reference CS5 User Manual

Page 465

background image

460

DREAMWEAVER API REFERENCE

Code

Last updated 8/27/2013

dom.setLinkHref()

Availability
Dreamweaver 3.

Description
Makes the selection a hypertext link or changes the URL value of the HREF tag that encloses the current selection.

Arguments
linkHREF

The linkHREF argument is the URL (document-relative path, root-relative path, or absolute URL) comprising the
link. If this argument is omitted, the Select HTML File dialog box appears.

Returns
Nothing.

Enabler
See “

dom.canSetLinkHref()

” on page 500.

dom.setLinkTarget()

Availability
Dreamweaver 3.

Description
Sets the target of the link that surrounds the current selection. This function is equivalent to looping through the
parents and grandparents of the current node until a link is found and then calling the

setAttribute('TARGET')

function on the link.

Arguments
{linkTarget}

The linkTarget argument, which is optional, is a string that represents a frame name, window name, or one of the
reserved targets (

"

_

self"

,

"

_

parent"

,

"

_

top"

, or

"

_

blank"

). If the argument is omitted, the Set Target dialog box

appears.

Returns
Nothing.

dom.setListBoxKind()

Availability
Dreamweaver 3.

Description
Changes the kind of the selected

SELECT

menu.