Web Hosting Talk







View Full Version : Concerning Javascript and the Param tag


w3needs
06-06-2005, 09:49 AM
Hello,

Is there a way to dynamically change the value of a param tag?

Say, I have a text field, and a user enters data into it. I know how to alter a few tag's data by using the onchange event, but can I change a param tag i.e.,


<param name="thisParamTag" value="valueToChange">


Thanks

Googled
06-06-2005, 03:55 PM
Yes there is one:


<param id="myid" name="myname" value="myvalue">

<script>

function changeValue() {
document.getElementById('myid').value = "valuechanged";
}

</script>


calling changeValue() will change your param value.

Regards