Instead use window.open():
The syntax is:
window.open(strUrl, strWindowName[, strWindowFeatures]);
Your code should have:
window.open("https://stackoverflow.com/questions/19588708/Prosjektplan.pdf");
Your code should be:
<p class="downloadBoks"
onclick="window.open("https://stackoverflow.com/questions/19588708/Prosjektplan.pdf")">Prosjektbeskrivelse</p>