W
Weston C
After noticing some problems with a script, I tried testing various bits
in the squarefree javascript shell (
http://www.squarefree.com/shell/shell.html ) and noticed this:
var anchor = document.createElement("a");
anchor
undefined
but:
var anchor = document.createElement("p");
anchor
[object HTMLParagraphElement]
Hmmmm. I tried it on a bunch of other elements, including some that
don't exist:
var anchor = document.createElement("rant");
anchor
[object HTMLUnknownElement]
So great. I can create a "rant" tag, but an anchor tag is right out?
Thanks,
Weston
~==~
http://weston.canncentral.org/
weston8[at]cann8central.org
(remove eights to email me)
in the squarefree javascript shell (
http://www.squarefree.com/shell/shell.html ) and noticed this:
var anchor = document.createElement("a");
anchor
undefined
but:
var anchor = document.createElement("p");
anchor
[object HTMLParagraphElement]
Hmmmm. I tried it on a bunch of other elements, including some that
don't exist:
var anchor = document.createElement("rant");
anchor
[object HTMLUnknownElement]
So great. I can create a "rant" tag, but an anchor tag is right out?
Thanks,
Weston
~==~
http://weston.canncentral.org/
weston8[at]cann8central.org
(remove eights to email me)