I want to add pop up window in my html page(or jsp). (like the way facebook image viewer works) I want to pop up new window in the same page when i click a button and if i click outside of that page i want to close it.