I’ve got a popup and when I close it the page I should go back to scrolls up. How can I avoid having the referring page scroll all the way up when I close my popup? I’d like the referring page to stay where it’s at.
My code to close the popup is
<a href="#" onclick="document.getElementById('popupD').style.display = 'none';"
" align="right">Close</a>
How can it be done in the way I want?
Any help is greatly appreciated.
Thanks
Without seeing how you’ve created your popup, it’s hard to say anything exact. However, it seems, that you have a
DIV-element positioned relative into the text flow. Just position the popup out of the text flow usingposition:absoluteorposition:fixed.