internet explorer - Embed webbrowser control inside IE -


how can create web browser activex object inside html document being opened ie?

i have tried this, object did not display:

<object id="mini" width=300 height=300 classid="clsid_webbrowser"</object> ... 

according msdn, since ie6 should use iframe instead: https://msdn.microsoft.com/en-us/library/aa752044%28v=vs.85%29.aspx

that said, following "works" me in ie11. have specify value of clsid_webbrowser:

<object classid="clsid:8856f961-340a-11d0-a96b-00c04fd705a2" id="browser" width="600" height="600" /> 

you can e.g.

document.getelementbyid("browser").navigate("http://www.example.com") 

edit: however, after first navigate, other method calls or property accesses result in "access denied". apparently design: https://support.microsoft.com/en-us/kb/176789

then ie crashes when close ymmv. think lesson here isn't supported , shouldn't doing it.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -