D
Donius
Is there a simple and clean way to get the window object that contains
an element that is passed into a function? I want to throw some alerts
/ confirms, but don't want to switch away from whatever window they're
currently looking at.
I can step up by parentNode until the nodeType equals 9, which means
the document element, and then step up one more...does that ensure a
window object? Or i could step up until the node had no
parentNode...would that be the window object?
Any other ideas anyone?
-Brendan
an element that is passed into a function? I want to throw some alerts
/ confirms, but don't want to switch away from whatever window they're
currently looking at.
I can step up by parentNode until the nodeType equals 9, which means
the document element, and then step up one more...does that ensure a
window object? Or i could step up until the node had no
parentNode...would that be the window object?
Any other ideas anyone?
-Brendan