<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Quick and Dirty JavaScript Pop-Up Windows</title>
	<atom:link href="http://blog.ninedays.org/2007/11/09/quick-and-dirty-javascript-pop-up-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ninedays.org/2007/11/09/quick-and-dirty-javascript-pop-up-windows/</link>
	<description>web development, photography, tutorials and adventure</description>
	<lastBuildDate>Tue, 16 Mar 2010 18:09:05 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Amy</title>
		<link>http://blog.ninedays.org/2007/11/09/quick-and-dirty-javascript-pop-up-windows/comment-page-1/#comment-62</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Wed, 28 Nov 2007 18:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ninedays.org/2007/11/09/quick-and-dirty-javascript-pop-up-windows/#comment-62</guid>
		<description>&lt;p&gt;Great sample to have onhand!&lt;/p&gt;

&lt;p&gt;Another thing you can do is have that function return false and then your onclick can just return the function.&lt;/p&gt;

&lt;p&gt;Like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function popWin(URL, winWidth, winHeight) {
    [...]
    eval(&quot;page&quot; + id + &quot;.focus()&quot;);
    return false;
}
[...]
&lt;a href=&quot;page_to_open.html&quot; onclick=&quot;return popWin(this.href, 650, 450);&quot;&gt;Open pop-up window&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Great sample to have onhand!</p>

<p>Another thing you can do is have that function return false and then your onclick can just return the function.</p>

<p>Like this:</p>

<pre><code>function popWin(URL, winWidth, winHeight) {
    [...]
    eval("page" + id + ".focus()");
    return false;
}
[...]
&lt;a href="page_to_open.html" onclick="return popWin(this.href, 650, 450);"&gt;Open pop-up window&lt;/a&gt;
</code></pre>]]></content:encoded>
	</item>
</channel>
</rss>
