<?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 21:07:18 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Javascript open links in a new window, without _blank - Krummelz</title>
      <link>https://snipplr.com/view/63232/javascript-open-links-in-a-new-window-without-blank</link>
      <description>&lt;p&gt;Usage:&#13;
&amp;lt;a href="http://www.whaterver-your-site-is-called.com/" rel="external"&amp;gt;Some other site&amp;lt;/a&amp;gt;&lt;/p&gt;</description>
      <pubDate>Fri, 10 Feb 2012 17:40:20 UTC</pubDate>
      <guid>https://snipplr.com/view/63232/javascript-open-links-in-a-new-window-without-blank</guid>
    </item>
    <item>
      <title>(JavaScript) JQuery popup new window from ASP.NET page - Krummelz</title>
      <link>https://snipplr.com/view/60600/jquery-popup-new-window-from-aspnet-page</link>
      <description>&lt;p&gt;This can be put into a utility class in your ASP.NET project and put onto the page with ScriptManager.RegisterStartupScript(). The script alters the ASP.NET __VIEWSTATE value which somehow validates requests; if you leave it out the popup wont work.&lt;/p&gt;</description>
      <pubDate>Mon, 07 Nov 2011 17:55:47 UTC</pubDate>
      <guid>https://snipplr.com/view/60600/jquery-popup-new-window-from-aspnet-page</guid>
    </item>
    <item>
      <title>(JavaScript) Javascript to warn the user that they will lose data if they go away from this page - Krummelz</title>
      <link>https://snipplr.com/view/58614/javascript-to-warn-the-user-that-they-will-lose-data-if-they-go-away-from-this-page</link>
      <description>&lt;p&gt;Easy to use in C# ASP.NET:&#13;
to prevent a user from losing data when navigating away from whatever page they are on, just add&#13;
  string setConfirmUnload = "setConfirmUnload(true);";&#13;
  ScriptManager.RegisterStartupScript(this, this.GetType(), "", setConfirmUnload, true);&#13;
to you code somewhere, or just call&#13;
  setConfirmUnload(true);&#13;
from the onClick or onClientClick even of a link.&#13;
To allow a link to navigate away, pass in false instead.&#13;
&#13;
Might be handy on an ASP.NET master page.&lt;/p&gt;</description>
      <pubDate>Tue, 13 Sep 2011 00:55:41 UTC</pubDate>
      <guid>https://snipplr.com/view/58614/javascript-to-warn-the-user-that-they-will-lose-data-if-they-go-away-from-this-page</guid>
    </item>
    <item>
      <title>(JavaScript) Javascript method to round decimal values - Krummelz</title>
      <link>https://snipplr.com/view/58613/javascript-method-to-round-decimal-values</link>
      <description>&lt;p&gt;call the method like so:  onkeypress="return inputLimiter(event, 'Numbers', this.value, 5);"&lt;/p&gt;</description>
      <pubDate>Tue, 13 Sep 2011 00:49:25 UTC</pubDate>
      <guid>https://snipplr.com/view/58613/javascript-method-to-round-decimal-values</guid>
    </item>
    <item>
      <title>(JavaScript) Javascript Character input restriction script, with length limiter - Krummelz</title>
      <link>https://snipplr.com/view/58166/javascript-character-input-restriction-script-with-length-limiter</link>
      <description>&lt;p&gt;Restricts the characters that are entered into a textbox. Also limits the length of the value to 5.&lt;/p&gt;</description>
      <pubDate>Thu, 25 Aug 2011 22:28:46 UTC</pubDate>
      <guid>https://snipplr.com/view/58166/javascript-character-input-restriction-script-with-length-limiter</guid>
    </item>
  </channel>
</rss>
