Please explain me, what the following javascript does?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Himanshu Saxena
    New Member
    • Apr 2011
    • 2

    Please explain me, what the following javascript does?

    Hi,

    I have a javascript with the following code:

    caburl="http://"+top.window.lo cation.host+"/ims.cab";
    cabver="1,1,1,5 ";
    document.write( "<object id='IMS' width=0 height=0 classid='CLSID: 8246AC2B-4733-4964-A744-4BE60C6731D4' codebase='"+cab url+"#version=" +cabver+"' style='display: none'></object>");

    From the above lines, I can understand that the first line specifies the location of cab file. Second Line specifies the cab file version.

    Can anyone please explain me, what the third line does..which starts with Document.Write. ...

    I dont have any knowledge of Javascript and want to convert the task performed by this javascript into my exe file.

    Expecting a quick and positive response.
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    There three javascript line

    two of them are statements and the third line print text on the current document. and ofcoruse erasing all the data.

    Comment

    • Himanshu Saxena
      New Member
      • Apr 2011
      • 2

      #3
      Could you please explain me, what text is it writing. As per my understanding, it runs a cab file

      Comment

      • daonho
        New Member
        • Apr 2008
        • 18

        #4
        It does nothing but print the text.

        Are you trying to create an object and append to the page or something?

        Comment

        Working...