470,855 Members | 1,163 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

removeChild from Child Window

I am trying to remove a row in a parent window from a child window.
Is this possible?

var row_delete = self.opener.document.getElementById("Action_Row_4" );
var rows = self.opener.document.getElementById("Action_Table" );
rows.removeChild(row_delete);

It errors on this line:
rows.removeChild(row_delete);
The error message is "Invalid Argument".

Mike

Oct 5 '05 #1
1 3139


mike wrote:

var row_delete = self.opener.document.getElementById("Action_Row_4" );


row_delete.parentNode.removeChild(row_delete);

--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 5 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by JehanNYNJ | last post: by
8 posts views Thread by Enzo | last post: by
5 posts views Thread by Markus Stehle | last post: by
2 posts views Thread by Pete | last post: by
reply views Thread by sakurasyi | last post: by
1 post views Thread by Rebecca Tsukalas | last post: by
10 posts views Thread by r_ahimsa_m | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.