<?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/"
		>
<channel>
	<title>Comments on: Overriding Firefox’s Window.Alert &#8211; Part 2</title>
	<atom:link href="http://mikeconley.ca/blog/2009/05/02/overriding-firefox%e2%80%99s-windowalert-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikeconley.ca/blog/2009/05/02/overriding-firefox%e2%80%99s-windowalert-part-2/</link>
	<description>The personal blog of a Toronto based software developer, musician, sound designer, and theatre enthusiast.</description>
	<lastBuildDate>Tue, 24 Jan 2012 15:00:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mike</title>
		<link>http://mikeconley.ca/blog/2009/05/02/overriding-firefox%e2%80%99s-windowalert-part-2/comment-page-1/#comment-332</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 01 Jul 2009 20:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://mikeconley.ca/blog/?p=381#comment-332</guid>
		<description>Hey Tom - thanks for the info!  I did eventually find my way to the DOMWillOpenModalDialog event, but didn&#039;t try event.preventDefault().  Thanks for the info!

Thanks for writing,

-Mike</description>
		<content:encoded><![CDATA[<p>Hey Tom &#8211; thanks for the info!  I did eventually find my way to the DOMWillOpenModalDialog event, but didn&#8217;t try event.preventDefault().  Thanks for the info!</p>
<p>Thanks for writing,</p>
<p>-Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://mikeconley.ca/blog/2009/05/02/overriding-firefox%e2%80%99s-windowalert-part-2/comment-page-1/#comment-331</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Wed, 01 Jul 2009 18:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://mikeconley.ca/blog/?p=381#comment-331</guid>
		<description>Hi Mike,

This might do the trick:
FireFox will raise the &#039;DOMWillOpenModalDialog&#039; event before showing a modal dialog (alert,confirm,prompt (but also security popups!)).
We can listen for this event and try to cancel further execution (https://developer.mozilla.org/en/DOM/event.preventDefault).

So something like:
document.getElementById(&#039;content&#039;).contentWindow.addEventListener(&#039;DOMWillOpenModalDialog&#039;, function(e){ e.preventDefault(); }, true);

Good luck!
Tom</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>This might do the trick:<br />
FireFox will raise the &#8216;DOMWillOpenModalDialog&#8217; event before showing a modal dialog (alert,confirm,prompt (but also security popups!)).<br />
We can listen for this event and try to cancel further execution (<a href="https://developer.mozilla.org/en/DOM/event.preventDefault" rel="nofollow">https://developer.mozilla.org/en/DOM/event.preventDefault</a>).</p>
<p>So something like:<br />
document.getElementById(&#8216;content&#8217;).contentWindow.addEventListener(&#8216;DOMWillOpenModalDialog&#8217;, function(e){ e.preventDefault(); }, true);</p>
<p>Good luck!<br />
Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>

