I am trying have a .pdf file named information.pdf to open in new window when someone clicks on the link. I can't get it to open in a new window. It opens in the same window. Any help would be greatly appreciated. Thanks. (Previous code removed) Logic Ali solved the problem. Thanks Logic Ali!
<a href="information.pdf" target='_blank'>PDF document</a> Code (markup): If your doctype doesn't allow the target atribute: <a href="information.pdf" id='pdfLink'>PDF document</a> <script type="text/javascript"> document.getElementById( 'pdfLink' ).target = '_blank'; </script> Code (markup):
Logic Ali, Thank you so much. It works! I have tried that other codes for hours. I appreciate your help.