Results 1 to 2 of 2

Thread: Setting parameters for OBJECT TAG

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    Dear all,
    I have the following HTML script
    <OBJECT NAME=Object parameters>
    <PARAM NAME=FirstParam VALUE=1>
    </OBJECT>

    Is it possible to change the value of the parameter FirstParam using DHTML. I am looking at an IE 5.0 only solution. Thanks in advance.

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Once you give an ID to your object TAG, you can access it's properties and methods by using client scripting.
    Also, since you're using IE only you can use VBScript on the client. So your code could be something like this:
    Code:
    <HTML>
    
    <SCRIPT Language=vbscript>
    Sub MySub
        YourObject.FirstParam = 5
        window.alert YourObject.FirstParam
    End Sub
    </SCRIPT>
    
    <BODY>
    
    <OBJECT NAME=YourObject ID=YourObject> 
        <PARAM NAME=FirstParam VALUE=1> 
    </OBJECT>
    
    <BR>
    
    <INPUT Type=Button onClick="MySub" id=MyButton>
    
    </BODY>
    </HTML>
    Regards,

Posting Permissions

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



Click Here to Expand Forum to Full Width