javascript - DLL as `src` of `<script>` -


I was browsing the source code of some website and I noticed that src is a & Lt; Script & gt; .

( view-source: http: //www.yellowbridge.com/onlinelit/bianiaxing.php )

It was something like this: & Lt; Script src = "some-dll-file.dll" & gt; & Lt; / Script & gt;

Many questions:

  • I did not know that & lt; Script & gt; Anything other than JS, what else can be used for it?
  • Can you talk to me about some more information on this subject? I have tried to hang around, but I realized that I do not know exactly what I should do.
  • Is this a cross-platform? I mean, if I was trying to do it in Epiphany on the Ubuntu box, would it work and fulfill its purpose? I'm on a window box right now and for some time I do not have access to anything else, so I can not test myself.
  • Javascript can only be used as client-side scripting language (and VBScript also, in IE). The src attribute specifies only a few URLs, and that will return the URL JavaScript.

    So, the URL actually returns Javascript if you save your content as a local text file, then you can read scripts.

    Without knowing anything about the site or its javascript, I think they are dynamically creating a part of the script file from DLL.

    Editing: In fact, by looking at JS Generated, I think it is dynamically compressing the script on the way to the client.


Comments