<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Suggestion]A Way to Return to Same Page Position on Sidebar Messengers]]></title><description><![CDATA[<p dir="auto">Sidebar applications are actually available in many browsers, but they are all just as common. I like that you can learn the advantages of <strong>Yandex browser.</strong> He is the only different browser I have seen. His sidebar application can switch to the page of the app, which is not simply changing the phone window, but the experience is as good as the mobile app. For example, the web side of instagram is actually very bad, because if you click on a user's home page while browsing pictures, you are trying to return to the previous page. It will jump directly to the top of the page, which causes you to keep sliding down to browse, but Yandex browser solves this problem, their sidebar application is no different from the app, this experience is really great, I think you can try to learn this feature, their browser is very good and can directly save the pictures you see on the web page, but I like you better, because opera is really beautiful.<img src="https://forums.opera.com/assets/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44f.png?v=qqje97jok90" class="not-responsive emoji emoji-emoji-one emoji--clapping_hands" title=":clapping_hands:" alt="👏" /></p>
<p dir="auto"><img src="/assets/uploads/files/1683526055952-%E5%9B%BE%E5%83%8F_2023-05-08_140734463.png" alt="图像_2023-05-08_140734463.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://forums.opera.com/topic/62250/suggestion-a-way-to-return-to-same-page-position-on-sidebar-messengers</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 00:33:32 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/62250.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 May 2023 06:18:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Suggestion]A Way to Return to Same Page Position on Sidebar Messengers on Sun, 14 May 2023 08:25:39 GMT]]></title><description><![CDATA[<p dir="auto">If you have a sidebar messenger on your website and you want to allow users to return to the same page position after closing the messenger, you can use JavaScript to store the current scroll position and then restore it when the messenger is reopened. Here are the steps:</p>
<p dir="auto">Add an event listener to the "close" button of your sidebar messenger to detect when it is closed.</p>
<p dir="auto">Use JavaScript to store the current scroll position when the "close" button is clicked. You can do this by setting a variable to the current scroll position using the window.pageYOffset property.</p>
<p dir="auto">javascript<br />
Copy code<br />
var scrollPosition = window.pageYOffset;<br />
Use JavaScript to store the scroll position in a cookie or local storage. For example, you can use the localStorage.setItem() method to store the scroll position.<br />
javascript<br />
Copy code<br />
localStorage.setItem('scrollPosition', scrollPosition);<br />
Add an event listener to the "open" button of your sidebar messenger to detect when it is reopened.</p>
<p dir="auto">Use JavaScript to retrieve the stored scroll position from the cookie or local storage.</p>
<p dir="auto">javascript<br />
Copy code<br />
var scrollPosition = localStorage.getItem('scrollPosition');<br />
Use JavaScript to set the scroll position to the stored value. You can do this by setting the window.pageYOffset property to the stored value.<br />
javascript<br />
Copy code<br />
window.pageYOffset = scrollPosition;<br />
By using these steps, users will be able to return to the same page position after closing and reopening the sidebar messenger on your website.</p>
]]></description><link>https://forums.opera.com/post/309980</link><guid isPermaLink="true">https://forums.opera.com/post/309980</guid><dc:creator><![CDATA[davidoliver-1]]></dc:creator><pubDate>Sun, 14 May 2023 08:25:39 GMT</pubDate></item><item><title><![CDATA[Reply to [Suggestion]A Way to Return to Same Page Position on Sidebar Messengers on Fri, 12 May 2023 17:57:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forums.opera.com/uid/188292">@kopollo</a> We are talking about Opera for desktops here.</p>
]]></description><link>https://forums.opera.com/post/309828</link><guid isPermaLink="true">https://forums.opera.com/post/309828</guid><dc:creator><![CDATA[leocg]]></dc:creator><pubDate>Fri, 12 May 2023 17:57:53 GMT</pubDate></item><item><title><![CDATA[Reply to [Suggestion]A Way to Return to Same Page Position on Sidebar Messengers on Fri, 12 May 2023 15:44:20 GMT]]></title><description><![CDATA[<p dir="auto"><a href="//www.linkedin.com/embeds/publishingEmbed.html?articleId=7380798348506727052">@uniechen</a> what is your phone model and system ?</p>
]]></description><link>https://forums.opera.com/post/309821</link><guid isPermaLink="true">https://forums.opera.com/post/309821</guid><dc:creator><![CDATA[kopollo]]></dc:creator><pubDate>Fri, 12 May 2023 15:44:20 GMT</pubDate></item></channel></rss>