Using javascript to open new tab and reload parent page


Staff member
I have a wordpress theme with a logo linking to a .pdf document.
In order to link the logo to the document, I must use a custom javascript :

document.getElementById('logo').href = "'mylink')"

I want this document open in a new tab. It currently works but for some reasons, I need to reload the parent page after the new tab has opened.

What can I add in order reload the parent page ?