title: Javascript function for playing a flash file in a certain position
body: <p>I have a button and when it is clicked I'd like to play a flash file in a certain position in my page, using id attribute. I'm using the onClick event in my button. This function doesn't work, is there any solutions?</p>
  
  <pre><code>function show(){
  document.getElementById("animation").innerHTML = &lt;embed src="flash-file.swf"&gt;
  }
  </code></pre>
  
  <p>My button is something like this:</p>
  
  <pre><code>&lt;button onClick="show()"&gt;Show animation&lt;/button&gt;
  </code></pre>
  
  <p>Here is where I want to play the flash file in:</p>
  
  <pre><code>&lt;div class="span2"&gt; 
  &lt;p id="animation"&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks</p>