Hi, I put my adsense code in div element. And I would like this div element with adsense to be closed when someone click a link from adsense. is it possible and if is how can be done? thanks
You cannot alter the adsense code in any way - but if someone clicks a link, they leave the site anyway.
If you have configured your browser that way, but if you are using a standard configuration of ie, when you click a link, it does not open in a new tab - you leave the site which was running the ads. You can't alter the adsense code in any way. You can't do anything to entice people to click ads. You would need check with adsense to see if what you are proposing would even be allowed - certainly not if your intent is to get people to click an ad to make a div go away.