SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1920 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


The getElementRef() function takes two arguments: The first argument is either NS 4.0 or IE 4.0, which
references the Netscape and Internet Explorer formats, respectively; and the second argument is the tag
being examined. The string returned puts the specified tag in the format of the named browser. If, for example,
getElementRef() is used to get the object reference to a specific AP element in Netscape terms, like
var theObjNS = dreamweaver.getElementRef(???NS 4.0???, tagArr[i]);
the variable, theObjNS, is set to something like
document.layers[???newLayer??™];
On the other hand, the same AP element, in Internet Explorer terms, like this:
var theObjIE = dreamweaver.getElementRef(???IE 4.0???, tagArr[i]);
returns a string like document.all.newLayer1.
Both getElementRef() and getObjectRefs() return browser-correct references for both browsers
for the following tags: , , , ,