DLL as `src`` <script>`

I was browsing the source code of some website and noticed that the dll file is used as srcfor <script>.

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

It was something like: <script src="some-dll-file.dll"></script>

A few questions:

  • I did not know what <script>could be anything but js. What else can it be used for?
  • Can you point me towards more information on this topic? I tried ggoogling, but realized that I did not know what I should look for exactly.
  • Is it a cross platform? I mean, if I tried to do this in enlightenment on an ubuntu box, would it function and serve its purpose? I am in the window right now and will not have access to anything else, so I can not check it myself.
+3
source share
3 answers

Only JavaScript can be used as a client-side scripting language (and VBScript too, in IE). The attribute srcsimply indicates some kind of URL, and that URL will return JavaScript.

So, the URL http://www.yellowbridge.com/lib/yellowbridge.dll really returns JavaScript. If you save its contents as a local text file, you can read the script.

Without knowing anything about the site or its JavaScript, I would suggest that they dynamically generate some part of the script file from the DLL.

: , JS, , script .

+4

, ' yellowbridge.dll', javascript. .

, dll javascript-.

+6

, src-attribute (source), . src img-, . URI , .

, , , DLL JavaScript UA.

EDIT: IE. , IE8 . IE7.

+2

Source: https://habr.com/ru/post/1711149/


All Articles