When I click on the link, it works and open a new window and shows the image but the main page also changes to a new page with this url address :
javascript:window.open('documents/receive_proof_1_2015-08-07_94583855.jpg', 'yourWindowName', 'width=400,height=330');
my code :
<a href="javascript:window.open(\'documents/'.$row['proof'].'\', \'yourWindowName\', \'width=400,height=330\');">Test</a>'