On 04/04/2012 09:35 AM, Ben Stover wrote:

> How can I delete a whole <div> pane with the following spec:
> 
> <div id="foobar">
> ....
> </div>

Try this:

var elem = document.getElementById("foobar");
elem.parentNode.removeChild(elem);

-- 
Michal Wojciechowski
http://odyniec.net/ | http://userscripts.org/users/49673

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to