|
-
Jan 29th, 2001, 07:41 AM
#1
Thread Starter
Hyperactive Member
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.
-
Jan 30th, 2001, 10:08 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|