My problem is that i want to delete all the cookies set by me when i am closing a child window. I am clicking on a hyperlink and it opens a new window. I am passing some values to the new window. Then i want to close the child window and extract some values from it. Then i close the window. So i want to define a function which is called prior closing the child window which will remove the cookies. So that for the next time when i click on the hyperlink a new window opens and i get new values in cookies.