title: Get attribute of embed element and changes values in flashvars Javascript?
body: <p>How can I get the value of flashvars attribute?</p>
  <pre><code>&lt;embed src=&quot;http://wl2static.lsl.com/common/flash/as3/MemberApplet026.swf&quot; 
  id=&quot;opera_elb&quot; width=&quot;100%&quot; 
  height=&quot;100%&quot; 
  allowscriptaccess=&quot;always&quot; 
  allowfullscreen=&quot;true&quot; 
  bgcolor=&quot;ffe8ef&quot; 
  quality=&quot;high&quot; 
  pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; 
  type=&quot;application/x-shockwave-flash&quot; 
  flashvars=&quot;muteaudio=0&amp;amp;ishd=1&amp;amp;ishq=0&amp;amp;twoway=0&amp;amp;proxyip=&quot;&gt;
  </code></pre>
  <p>I am using <code>getElementsByTagName</code> to get the element.</p>
  <pre><code>var Em = content.document.getElementsByTagName('embed');
  </code></pre>
  <p>And replace values in flashvars</p>
  <pre><code>&lt;script&gt;
  function myFunction()
  {
  var Em = content.document.getElementsByTagName('embed');
  var str = Em[0].getAttribute('flashvars').innerHTML; 
  var res = str.replace(&quot;muteaudio=0&quot;,&quot;muteaudio=1&quot;);
  document.getElementsByTagName(&quot;embed&quot;).innerHTML=res;
  }
  &lt;/script&gt;
  </code></pre>
  <p>But when I try error: Uncaught ReferenceError: content is not defined
  please help me.</p>