call object's method in javascript

Discussion in 'Scripting' started by Adrian Chen, Aug 5, 2008.

  1. Adrian Chen

    Adrian Chen Guest

    Please tell me how can I call mothed provided in object in javascript.

    I adopt an object in my webpage(.aspx) like this:
    <OBJECT ID="logon" CLASSID="CLSID:79610275-E990-43D0-84BC-0926BA2166D8"

    And I try to call funtion:GetFP() in it like this:
    <script language="javascript" type="text/javascript">
    function func()
    return true;
    return false;

    But I failed!why? thx!!
    Adrian Chen, Aug 5, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.