Works in FireFox. Doesn't work in MSIE. In MSIE, the src="something" remains unchanged. Can someone please suggest the cause?
Many thanks,
--Glen
Memoria mihi benigna erit qui eam perscribam
Many thanks,
Code:
<script>
function ViewAsx(videoCode) {
videoCode = 'AsxGenerator.aspx?fn=' + videoCode;
var v = document.getElementById('video');
v.innerHTML = v.innerHTML.replace(/src="(.+?)"/, 'src="' + videoCode + '"');
alert(v.innerHTML);
}
</script>
<a href="javascript:ViewAsx('somewhere')">link</a>
<div id="video">
<embed src="something"></embed>
</div>
--Glen
Memoria mihi benigna erit qui eam perscribam