import outer html as inline html
<p>i have a html page sth.html containing</p>

<pre><code>&lt;div id="recoverpass"&gt;
    &lt;h2&gt;Recover Password&lt;/h2&gt;
    &lt;form action="#" method="post" name="recoverpass"&gt;
        &lt;p&gt;&lt;label&gt; Enter E-Mail Address: &lt;/label&gt; &lt;input type="text" name="email" id="name" /&gt;&lt;/p&gt;
        &lt;input type="submit" value="Recover Password" /&gt;
    &lt;/form&gt;
&lt;/div&gt;
&lt;div id="registernew"&gt;
        &lt;h2&gt;Register New User&lt;/h2&gt;
        &lt;form action="#" method="post" name="recoverpass"&gt;
            &lt;p&gt;&lt;label&gt; Enter E-Mail Address: &lt;/label&gt; &lt;input type="text" name="email" id="name" /&gt;&lt;/p&gt;
            &lt;input type="submit" value="Recover Password" /&gt;
        &lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>In my index.html page, i have a popup that is loaded when corresponding links are clicked. What i want is that when forgot password popup is loaded, it should import html from sth.html then content of recoverpass 'div'. and when register popup is loaded, it should import html from sth.html then content of registernew 'div'.</p>
