HTML object tag return method

I am creating a page where I need to display the RDP client ActiveX object in a browser. This obviously only works on IE + Windows, so I need to make sure that other browsers get an error message.

About the w3c object tag, it writes:

If the user agent cannot display the object for any reason (not configured for insufficient resources, improper architecture, etc.), it should try to display its contents.

So, I do like this:

<object id="MsRdpClient" onreadystatechange="TryConnect();" codebase="msrdp.cab#version=5,1,2600,1050" classid="CLSID:9059f30f-4eb1-4bd2-9fdc-36f43a218f4a"> <script type="text/javascript"> window.location = "failure.aspx"; </script> </object> 

However, IE (9) displays the contents of the object tag, even if the objects are loading. Is this a bug in IE?

What can I do instead?

+4
source share
1 answer

Unfortunately, this is a known issue in IE9, but has not yet been fixed. Read about it at msdn.

+1
source

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


All Articles