In my design, there is an absolute positioned DIV with a significant top CSS value. Initially, this DIV is hidden and only revealed by slideToggle (jQuery) when a specific button is pressed. This functionality works perfectly for DIVs located at the top of the page.
The issue arises when a button placed below the visible window area is clicked, causing the hidden DIV to appear next to the button due to its large top value (400px or more). Unfortunately, each time this happens, the window jumps back to the top of the page, forcing users to scroll down again to view the content. Is there a way to prevent the window from automatically jumping to the top so that the revealed DIV remains in the same position without requiring users to scroll repeatedly?