hi all
i m creating a shopping cart in php.
i want to add a javascript function on body unload that when the user closes his browser then he will get an confirm alert that the shopping cart contents should get clear or remove,
if he clicks ok then the contents should get removed and if clicks cancel then nothing happens.
how is it possible with javascript. my shopping cart contents are inside the <form> tag.
vineet



Reply With Quote


Bookmarks