When the src attribute of an embed element is set declaratively (it is specified as part of the tag), everything works fine. However, if I specify it using JavaScript, it does not work. Why is this, and is there a way around it? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
Why is what? Also, you say "it does not work". What is "it"? What does not work? What is it doing that you do not want it to do or it what is it not doing that you don't it does not work want it to. "Nathan Sokalski" wrote in message news:uTsnFuL$HHA.536@TK2MSFTNGP06.phx.gbl... > When the src attribute of an embed element is set declaratively (it is > specified as part of the tag), everything works fine. However, if I > specify it using JavaScript, it does not work. Why is this, and is there a > way around it? Thanks. > -- > Nathan Sokalski > njsokalski@hotmail.com > http://www.nathansokalski.com/ >
On Sep 21, 9:54 pm, "Nathan Sokalski" wrote: > When the src attribute of an embed element is set declaratively (it is > specified as part of the tag), everything works fine. However, if I specify > it using JavaScript, it does not work. Why is this, and is there a way > around it? Thanks. First off, don't use embed elements (use objects.) And to solve your problem, you must remove the object from the document and append a new one.