Document.write issue in IE

Hi there,

I am using a few bits of tech here, but I’ve narrowed everything down to this bit…

This code works for me in IE:

<param name="movie" value="mymovie.swf?greeting=hello" />

But this doesn’t:

<script type="text/javascript">
document.write('<param name="movie" value="mymovie.swf?greeting=hello" />');
</script>

Anyone shed any light on this? I can’t work it out…