Sandip's Programming Zen

An attempt to share tech/coding experiences

Archive for January 2010

Replacing “src” property using Javascript in embed tag

leave a comment »

Quickly,

If you try to replace the src property of embed tag using javascript , it will work fine in Firefox but not in IE.

To make it work in both you have to  wrap the embed tag in <div> and then replace the whole embed tag in div every time you want a change in src propert.

Advertisements

Written by Sandip

January 7, 2010 at 12:28 pm