hello i need some function going to run after a link before another page.
for example.
this is main.html
<div>
<a href="another.html" onclick="linkPopup()" target="_blank" title="popup"></a>
</div>
and when click tag.
another.html loaded and open popup inside in function exist already in another.html
another.html
open popup!
like this.
3
Answers
simple, Change your html like this way
Then define you function like this way
i think you need to call function before goes to another.html , to achieve this , very simple is
remove link from anchor and location.href in function
Use localStorage for this functionality. https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
Page current.html
Page another.html