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 :
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 ?
Thanks
In order to link the logo to the document, I must use a custom javascript :
Code:
document.getElementById('logo').href = "javascript:window.open('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 ?
Thanks