<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>9 Jul 2016 17:31:00 Z</lastBuildDate><pubDate>7 Jul 2016 09:38:00 Z</pubDate><description>Hi All&#13;
&#13;
WB21 - Classic site&#13;
&#13;
I have an iFrame in which a long page is displayed on user request. If the user scrolls the browser down and then requests the same page but for a different item then it displays as at the browser scroll point. I would like the page to start at the top however.&#13;
&#13;
Fabrice suggested using PagePosition() but I cannot get this to work and have tried putting it in to various code sections with no effect.&#13;
&#13;
I have then found a Javascript code which can reset the browser scroll as follows:&#13;
&#13;
window.scrollTo(x-coord, y-coord);&#13;
&#13;
Can someone explain to me how I can call this very simple bit of code from WebDev?&#13;
&#13;
TIA</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript/read.awp</link><title>[WB21] - How to use Javascript</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58578/read.awp</comments><pubDate>9 Jul 2016 17:31:00 Z</pubDate><description>Way to go JP! Glad to hear you got it working.&#13;
&#13;
Regards,&#13;
Ken</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58578/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58578/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript/read.awp">[WB21] - How to use Javascript</source><title>Re: [WB21] - How to use Javascript</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58573/read.awp</comments><pubDate>9 Jul 2016 12:10:00 Z</pubDate><description>Ken,&#13;
&#13;
Thank you. I have found the sample and studied it - is has shown me how to add the JavaScript code and I have it working…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58573/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58573/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript/read.awp">[WB21] - How to use Javascript</source><title>Re: [WB21] - How to use Javascript</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58567/read.awp</comments><pubDate>8 Jul 2016 16:33:00 Z</pubDate><description>Hi JP,&#13;
&#13;
if you have WB21, check out the responsive example. In the click event of the menus at the top right you'll see a meth…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58567/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58567/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript/read.awp">[WB21] - How to use Javascript</source><title>Re: [WB21] - How to use Javascript</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58550/read.awp</comments><pubDate>7 Jul 2016 14:46:00 Z</pubDate><description>Ken,&#13;
&#13;
OK, how would I scroll the whole browser to the top, the entire homepage so to speak?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58550/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58550/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript/read.awp">[WB21] - How to use Javascript</source><title>Re: [WB21] - How to use Javascript</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58547/read.awp</comments><pubDate>7 Jul 2016 14:14:00 Z</pubDate><description>Hi JP,&#13;
&#13;
I think the simplest way to use that code is inside some browser code event, you could use it like the following:&#13;
&#13;
E…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58547/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript-58547/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58543-wb21-how-use-javascript/read.awp">[WB21] - How to use Javascript</source><title>Re: [WB21] - How to use Javascript</title></item></channel></rss>
