d="ResizeImageReset" src="../icons/TocClose.gif" style="display:none" onclick="OnResetToc()" alt="Click or drag to resize" title="Click or drag to resize" /></div></div><div id="TopicContent" class="topicContent"><table class="titleTable"><tr><td class="titleColumn"><h1>Java<wbr />Script<wbr />Extensions<span id="LST38795863_0" data-languageSpecificText="cpp=::|nu=."></span>To<wbr />Promise Method</h1></td></tr></table><div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionE