i have object tag as:

<object type="application/x-shockwave-flash" id="aa"
data="act_pass_satell.swf?a=12"
width="900" height="645">

how can i change the src attribute of object tag?

<a onclick='document.getElementById('aa').data="newfile.swf";' href="#">click</a> maybe?

<a onclick='document.getElementById('aa').data="newfile.swf";' href="#">click</a> maybe?

this does not work,any other way?

just one method of many possible methods, if you ask a general question, you get a general answer

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.