Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Using Javascript from an HTC File that's Defined in the Parent

An HTML Component (HTC) question



9:43 pm on Dec 11, 2002 (gmt 0)

Inactive Member
Account Expired


I have an HTC file that i'm attempting to reference a function contained within another page (the page that utilizes the behavior).

Although my HTC file can easily manipulate items (eg: spans, form elements, etc) using conventions like
"parent.document.all['holder'].value = 'tito';", i can't seem to access functions on that page using something like:

Any idea how to utilize functions that exist outside the HTC file itself?


<sorry, no emails in signatures>

[edited by: tedster at 4:48 am (utc) on Dec. 12, 2002]

5:08 am on Dec 12, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
votes: 0

HTML Components (HTC files) are IE specific and I've never used them for that reason. But I do have a Microsoft page bookmarked as a reference "just in case":

Microsoft HTC Reference [msdn.microsoft.com]

I hope that's some help - it may at least help others who read this thread to get a handle on what HTC files are.