D. Patterson wrote:
Thanks for the link.
The answer is as I feared. Basically, no-go.
"RobG" wrote I think that exact same question was asked (and discussed at length)
in the thread 'Instantiate extended browser objects':
<URL:http://groups.google.com/group/comp....e_frm/thread/2
6e7167f7b5542bd/b5bf1f5cf9f6b69a?tvc=1&q=Instantiate+extended+brow ser+object
s#b5bf1f5cf9f6b69a>
In addition to both discussion I would like to add that IE exposes
generic <element> object for behavior scripting:
....
DIV { behavior:url(SingAndDance.htc) }
....
would make each new div by default move across the screen and play
country music (if you write the corresponding htc script properly).
More universally you should use the standard way by declaring custom
new space (say "X") and having there your <X:DIV> element with all
needed properties.
I have to admit though that in both discussions I missed to catch up on
the ground reasonning: why sex change operations on DIV itself is
anyhow better then:
....
var myDiv = new extendedDIV();
myDIV.addTo(document.body);
....
???