i'm using the following construct to access form fields within an
iframe:
var x = document.getEle mentById('prefs _iframe').conte ntWindow.docume nt.forms["prefs_form "];
works great in IE and Mozilla/Firefox. doesn't work in Safari. my
DHTML reference book says that contentWindow is only supported in
NN7/IE5.5(Win). what's the DOM-friendly approach to accessing form
fields within an iframe?
the book says to use contentDocument .defaultView but i get [null] when
i try that.
-jsd-
iframe:
var x = document.getEle mentById('prefs _iframe').conte ntWindow.docume nt.forms["prefs_form "];
works great in IE and Mozilla/Firefox. doesn't work in Safari. my
DHTML reference book says that contentWindow is only supported in
NN7/IE5.5(Win). what's the DOM-friendly approach to accessing form
fields within an iframe?
the book says to use contentDocument .defaultView but i get [null] when
i try that.
-jsd-
Comment