<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>~SingleForum~无废话记录~ Topic: window.showModalDialog和window.returnValue</title>
<link>http://www.ll19.com/bb/</link>
<description>~19~记录点有用的好吗？少说废话少装b~</description>
<language>en</language>
<pubDate>Tue, 07 Feb 2012 08:53:37 +0000</pubDate>

<item>
<title>admin on "window.showModalDialog和window.returnValue"</title>
<link>http://www.ll19.com/bb/topic/12#post-12</link>
<pubDate>Fri, 13 Mar 2009 12:25:00 +0000</pubDate>
<dc:creator>admin</dc:creator>
<guid isPermaLink="false">12@http://www.ll19.com/bb/</guid>
<description>&#60;p&#62;打开子窗口得到子窗口返回的值~&#60;/p&#62;
&#60;p&#62;父窗口：&#60;/p&#62;
&#60;p&#62;<div class="igBar"><span id="ljavascript-1"><a href="#" onclick="javascript:showPlainTxt('javascript-1'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span><br /><div id="javascript-1">
<div class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;#60;br /&amp;#62;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> returnTarget = window.<span style="color: #006600;">showModalDialog</span><span style="color: #66cc66;">&#40;</span>url, <span style="color: #000066;">name</span>, feature<span style="color: #66cc66;">&#41;</span>;&amp;#60;br /&amp;#62;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>returnTarget != undefined &amp;#38;#38;&amp;#38;#38; returnTarget.<span style="color: #006600;">length</span> &amp;#38;gt; <span style="color: #CC0000;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>&amp;#60;br /&amp;#62;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066;">alert</span> <span style="color: #66cc66;">&#40;</span>returnTarget<span style="color: #66cc66;">&#41;</span>;&amp;#60;br /&amp;#62;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>&amp;#60;br /&amp;#62; </div></li></ol></div>
</div></div><br />&#60;/p&#62;
&#60;p&#62;字窗口返回值：&#60;/p&#62;
&#60;p&#62;<div class="igBar"><span id="ljavascript-2"><a href="#" onclick="javascript:showPlainTxt('javascript-2'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span><br /><div id="javascript-2">
<div class="javascript"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;#60;br /&amp;#62;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">window.<span style="color: #006600;">returnValue</span> = &amp;#34;true&amp;#34;;&amp;#60;br /&amp;#62;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">window.<span style="color: #000066;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;&amp;#60;br /&amp;#62; </div></li></ol></div>
</div></div><br />
&#60;/p&#62;</description>
</item>

</channel>
</rss>

