<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 12:03:53 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Scroll to specific div using a variable from the URL on page load - chrisguiblin</title>
      <link>https://snipplr.com/view/66806/scroll-to-specific-div-using-a-variable-from-the-url-on-page-load</link>
      <description>&lt;p&gt;This code assumes a page is populated with divs with ids div_1, div_2, div_3 etc etc etc...&#13;
&#13;
Some quick php to create 200 divs numbered as above:&#13;
&#13;
&lt;?php&gt;".&#13;
			 "	DIV ".$i.&#13;
			 "&lt;/div&gt;";&#13;
	}&#13;
?&gt;&#13;
&#13;
To test the code, add an id to the url so its something like this (assuming urlVars.php is the name of the page):&#13;
&#13;
urlVars.php?id=80&#13;
&#13;
Play around with the id number to test.&lt;/p&gt;</description>
      <pubDate>Sun, 19 Aug 2012 20:06:46 UTC</pubDate>
      <guid>https://snipplr.com/view/66806/scroll-to-specific-div-using-a-variable-from-the-url-on-page-load</guid>
    </item>
  </channel>
</rss>
