Window.open

i have a form that on post it runs a php page.But when the result is successful it opens a notification page. The problem is that it opens both the php page and the notification all I would like to do is to show the nofication page. php page runs the confirmation then if the result is successful then the nofication is used. I used "window.open" in javascript.Please can someone help