Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Location
    PA
    Posts
    110

    Concerning Javascript and the Param tag

    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.,

    PHP Code:
    <param name="thisParamTag" value="valueToChange"
    Thanks

  2. #2
    Join Date
    May 2005
    Location
    Planet Earth
    Posts
    813
    Yes there is one:

    PHP Code:
    <param id="myid" name="myname" value="myvalue">

    <
    script>

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

    </script> 
    calling changeValue() will change your param value.

    Regards
    PutFile.io — Disrupting traditional file hosting.
    █ Signup Early and enjoy Unlimited space/bandwidth for your files hosting, Forever!
    █ No Ads.
    █ No Countdowns.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •