title: Embedded code to be displayed on click event of button
body: <p>I have a embedded code which displays yahoo chart</p>
  
  <p>the embedded code is -</p>
  
  <pre><code>&lt;embed bgcolor="#dbdbd3" flashvars="lcId=1169793726234&amp;amp;state=symbol%3D%5Ensebank;range=1d;indicator=ema(13,34,55)+macd+rsi+stochasticfast;charttype=candlestick;crosshair=on;ohlcvalues=0;logscale=on;source=undefined" loop="false" menu="false" name="BANKNIFTY" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://us.js2.yimg.com/us.yimg.com/i/us/fi/yfc/swf/flashchart_1.18.swf" style="height: 775px; width: 550px" type="application/x-shockwave-flash" wmode="opaque"&gt;&lt;/embed&gt;
  </code></pre>
  
  <p>I want this embedded code to be displayed when I click on the display button.</p>
  
  <p>Please suggest the relevant javascript.</p>
  
  <p>I tried something like this </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function ln(){
  document.getElementById('looknorth').innerHTML='&lt;embed bgcolor="#dbdbd3" flashvars="lcId=1169793726234&amp;amp;state=symbol%3D%5Ensebank;range=1d;indicator=ema(13,34,55)+macd+rsi+stochasticfast;charttype=candlestick;crosshair=on;ohlcvalues=0;logscale=on;source=undefined" loop="false" menu="false" name="BANKNIFTY" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://us.js2.yimg.com/us.yimg.com/i/us/fi/yfc/swf/flashchart_1.18.swf" style="height: 775px; width: 550px" type="application/x-shockwave-flash" wmode="opaque"&gt;&lt;/embed&gt;'();
    }
  &lt;/script&gt;
  &lt;input type=button style="background-color:#123742; color:#FFFFFF ; font-weight:bold; font-size:15" name=Button2 value=Calculate onClick=ln();&gt;&lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>by referring to a code found on the internet but is not working.</p>