Today I found this code snippet:
<object ID="FF" CLASSID="clsid:guid" CODEBASE="url" VIEWASTEXT></object>
<object ID="FileSaver" CLASSID="clsid:guid" CODEBASE="url" VIEWASTEXT></object>
…
<script language="javascript">
function FileSaver::OnFinished(Status){…}
function FF::OnFinished(Status){…}
</script>
I can't find anything relevant to explain this syntax. Is it really javascript? Is it correct? If not, how the code should look like?
This is a single page without external script links.
Note that function declarations are directly inside <script>
block.