Sandip's Programming Zen

An attempt to share tech/coding experiences

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: