Navigation URL

Navigation URL

Can someone please tell me how to use       
  #Script:page.parent.close
I want to close a window on the click of a button using this script but it is not working. Can someone give me the exact syntax.

Thanks.
Jayadev.