How can I remove elements which are created by javascript, I tried using css by setting display:none; but that doesn't seem to solve my problem, also I can't remove them since I don't have them in HTML, any other ways ? thank you
UPDATE :
Can't use any javascript such as jquery, mootools, extjs etc, and actual elements I want to remove are divs, with specified class so I can't use getElementById.
I found this script on google, but it doesn't seem to work but this is what I need :