View Full Version : [HELP] Click event inside javascript

09-14-2010, 07:51 AM
Hello guys...

i hope you could help me

im using a modal form script in my page

once my page load a modal form will appear and it contains advertisement

my problem is how can i hide the modal form when advertisement was clicked

it is a javascript advertisement (adhitz)

this part of the code

Javascript code: this close when DIV was click
$('.window').click(function () {

this is the modal form pop up
<div id="dialog" class="window" name="window">
<script type="text/javascript" src="http://adhitzads.com/xxxxxx" ></script>

i hope someone could help me