Thanks, this is surly getting better but still not working for me I'm trying to figure a generic way which will work on different pages The reason I need this is a module for drupal I'm writting And I want to allow to user to disable my script from running on configurable elements (div/form etc..) here is a real life example ...