internet-explorer,webbrowser-control,activexobject , Embed webbrowser control inside IE


Embed webbrowser control inside IE

Question:

Tag: internet-explorer,webbrowser-control,activexobject

How can I create a web browser activeX object inside a HTML document that is being opened with IE?

I have tried something like this, but the object did not display:

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

Answer:

According to MSDN, since IE6 you should use an iframe instead: https://msdn.microsoft.com/en-us/library/aa752044%28v=vs.85%29.aspx

That said, the following "works" for me in IE11. You have to specify the value of CLSID_WebBrowser:

<object classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2" id="browser" width="600" height="600" />

You can then do e.g.

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

Edit: However, after the first navigate, any other method calls or property accesses result in "access denied". This is apparently by design: https://support.microsoft.com/en-us/kb/176789

Then IE crashes when I close it so YMMV. I think the lesson here is that this isn't supported and you probably shouldn't be doing it.


Related:


Using getComputedStyle with IE 11


javascript,jquery,css,internet-explorer
NOTE: This has an update below. I will likely change description as it is not a getComputedStyle issue, it is an issue actually with print-media and the fact that Internet Explorer now supports document.styleSheets[].cssRules. I am a bit confused on this as I thought this worked and I am not...

Use Google Map V3 API ClientID in Application with no URL


javascript,google-maps,google-maps-api-3,webbrowser-control
Need to get Google Map V3 API work in my application with purchased ClientID. The application is using WebBrowser Control to load html into documentText and the Url is 'about:blank'. The problem is I can't put about:blank into authorized URLs list in google map console. Also I can't host html...

User Getting Logged out in IE when closing browser


internet-explorer,session,cookies,p3p
I am running a Drupal 7 site and am noticing a problem on IE9, when the browser window is closed the user is logged out. We have "remember me" module enabled and the cookie is set to not expire. There is no issue on Chrome or any other browser, you...

Trying to fire onclick event asp:ImageButton [closed]


asp.net,visual-studio-2010,internet-explorer
My asp:ImageButton doest not fire onclick event on IE, but is working normally on chrome or firefox. Don't know if my code is right, but is here: <asp:ImageButton ID="SaveBtn" runat="server" OnClick="Save_Click" ToolTip="Save" ImageUrl="images/save.png" /> Using .NET Framework 3.5 Note: IE10...

show a div with jQuery if the user is on IE 9 and below


javascript,jquery,internet-explorer,internet-explorer-9
How could I detect (with jQuery) if the user is on IE 9 or below, and if they are .show() a div? I have successfully done the below with jQuery for Android. How could I do a IE 9 AND below condition? Done similar with Android. (would like a similar...

In IE, anchor text is overflowing/overlapping instead of wrapping, but not other text


html,css,internet-explorer,drupal-7
I am running into an annoying problem I have yet to solve. Before I get too far into this I will point out that I am doing this in Drupal 7 (so no need to comment about the excessive wrapper elements, I already know). The problem is that in all...

How to avoid wrap in IE7 when I have two ul in a navigation?


html,css,css3,internet-explorer,internet-explorer-7
In ie8 or firefox browser,My code runs well,the two ul are in the same line.But when I ie7,the two ul are in the diffrent line,How to make then in the same line in ie7? <DIV id='navigation'> <ul><li><span> leftspan </span></li></ul> <ul style='float:right;'> <li><span> leftspan </span></li> <li><a href="http://www.google.com" target="_blank">google</a></li> <li><a href="http://www.apple.com" target="_blank">apple</a></li>...

Auothotkey: Remove string, placement string in subject box


internet-explorer,autohotkey
Can somebody help me out, finding why my code doesn't work ? My code: #b:: pwb := WBGet() pTable:= pwb.document.GetElementsByTagName("Table") [4] ;outerHTML ;Set Tag name and Array value Loop, % pTable.rows.length { LSN:= pTable.rows[9] .GetElementsByTagName("TD") [1].outerHTML ; LSN protocol:= pTable.rows[9] .GetElementsByTagName("TD") [3].outerHTML ; Protocol Site:=pTable.rows[10] .GetElementsByTagName("TD") [1].outerHTML ; Site Requisition:=pTable.rows[12]...

Font Face issues in Internet Explorer 8


css,internet-explorer,fonts,internet-explorer-8,font-face
I created a test page for IE 8 to see if i could use Google fonts. You can find the code at the end of the question. I am including every Google font i need by using a element with a list of them. Now, depending on the HREF attribute...

Using angularJS click on enter form functionality in Internet Explorer


javascript,html,angularjs,internet-explorer,default
I have a form in angularJS like this: <form> <div class="row form-group"> <div class="col-xs-4"> <label>Product name:</label> </div> <div class="col-xs-8"> <input ng-model="vm.name" ng-disabled="vm.product.name"> </div> </div> <button ng-hide="1" ng-click="vm.addName()"></button> </form> The idea being that when a user enters a name the form locks it (inside addName()) and does an API call to...

Check if code is compatible with IE 5


javascript,html,internet-explorer
I have to make a website that is compatible with IE 5+, It has to work with IE5+ because the device im working with uses Windows CE 5 or 6 and i cannot update the IE to a more recent version. I've made a javascript code with a couple of...

Modal not working in IE10, but works fine in other browsers


html,css,internet-explorer,internet-explorer-10
I am creating a modal dialog based on a CSS only approach from the online example below. It works great in IE 11, Chrome and Firefox, but in IE 9 and IE 10, the modal doesn't work. In IE 9 and IE 10, you can't click any of the content...

IE Input type Date not appearing as Date Picker


internet-explorer,date,datepicker
I am using the input type DATE in my HTML and everything works fine in Chrome and Firefox, but IE does not show the date picker. When I use the JQuery Datepicker I get two date picker dialogs in Chrome and Firefox. How can I fix this where I can...

Why does IE show junk for my dasBlog blog?


internet-explorer,dasblog
If I look at my blog in Chrome or Firefox, it looks as I expect. However, if I try to look at it in IE (11.0.9600.17801) it asks me if I want to download W69NUE8S (or some other random file name), which looks like some binary file. http://dotnetwhatnot.pixata.co.uk/ I tried...

Internet Explorer hover/rgba/opacity/css3 compatibility


css3,internet-explorer,hover,internet-explorer-9,rgba
I am using CSS3 with an rgba alpha opacity hover to display text over an image when the user hovers. Works fine in chrome, firefox and safari but when trying in internet explorer (9) it just shows the image and hovering does nothing. Check out the code here: http://jsfiddle.net/b16pow50/ div...

Call onkeyup function while doing automation


internet-explorer,powershell,automation
I am trying to perform IE automation using PowerShell. While automating some manual task using IE object, I am able to navigate to the website and enter value in text box, but the submit button available on website can only be triggered after a key up event is fired in...

windows phone 8.1 universal app : clear cookies


c#,windows-phone-8,cookies,windows-phone-8.1,webbrowser-control
I am developing windows phone 8.1 universal app and i wish to clear cookies from browsers. I have used windows.phone.controls namespace and used following code await new WebBrowser().ClearCookiesAsync(); but it says that it throws several error. Please help windows programmers . I think the above code works well for silverlight...

HTML/CSS menu not working on IE


html,css,internet-explorer
I'm working on a website and I was happy that all was looking good on Chrome, Firefox and Safari. Then it came it suddenly in my mind, I started sweating, the heart started beating fast.. oh God, I have to test it on IE! And, of course, it doesn't work...

Character rendering is different (IE/Chrome)


html,css,google-chrome,internet-explorer
I'm trying to figure out why does the arrow symbol render differently on Chrome and Internet Explorer but without any success. Surprisingly IE displays it correctly while Chrome has problems with rendering. Ignore the difference in size, it is due to zooming. Chrome IE Regarding CSS, there is only Eric...

Select item from ComboBox to open web links on WebBrowser?


vb.net,webbrowser-control
i've been looking around on how to make a combobox list choice to access a webpage on webbrowser. For example, if i choose the first item in the combobox wich is named "Google" then i would press on the button next to it to access google on the webbrowser. I...

How do I wrap text in a pre tag for Internet explorer?


html,css,internet-explorer,whitespace,word-wrap
I am using following code to wrap the <PRE> region in HTML: <PRE style = "white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"> It is working fine on chrome and Mozilla but the same is not working for IE. I am using IE9. Please tell me if any...

IFRAME won't display 100% height in IE8, but fine in IE11 and Firefox


html,css,internet-explorer,iframe,internet-explorer-8
I have a HTML page with an iframe in a div. The iframe height should be 100% of the available window height. This displays as expected in IE11 and Firefox, but in IE8 the iframe remains at a fixed size, regardless of the window size or the iframe content. When...

Visual Studio 2015 - Webbrowser - getElementById


c#,visual-studio,webbrowser-control,getelementbyid
In a Visual Studio 2015 WPF application, I have a webbrowser called WebBrowser1. This refers to an HTML page which contains a TextArea to which users can input text. <html> <body> <textarea class="myStudentInput" id="myStudentInput1"> Text to be copied </textarea> </body> </html> I wish to get this text in Visual Studio,...

Add special characters to HttpContext.Current.Response.AddHeader()


internet-explorer,c#-4.0,httpresponse
I want to generate PDF file with special characters. My code is as follows: MemoryStream memoryStream = // get memory stream relevant to pdf file HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.UTF32; HttpContext.Current.Response.AddHeader("Content-Disposition", string.Format("attachment;filename={0}.pdf", downloadLink)); HttpContext.Current.Response.ContentType = @"application/pdf";...

How to consistently crash IE 10&11? Reproducing “Internet Explorer to close and reopen the tab”


javascript,html,css,internet-explorer
This is a stupid question. Is there a way to consistently produce this error in Internet Explorer 10&11 with Javascript, css or HTML? A problem with this webpage caused Internet Explorer to close and reopen the tab. This is not for malicious webpage, I need to test some plugin and...

How to set the IEDriverServer.exe through command line in protractor


internet-explorer,selenium,selenium-webdriver,webdriver,protractor
I would like to set the IEDriver executable path via command line while using protractor. I am using the following command, but it is not considering path to the IEDriver executable. cd > protractor --seleniumArgs "['-Dwebdriver.ie.driver=../selenium/IEDriverServer.exe']" conf.js I am getting the error: var template = new Error(this.message); ^ UnknownError: The...

History token fires twice if the URLhas a special character in IE


java,internet-explorer,gwt
I have a code that is working perfectly fine in firefox and chrome, but not very well in IE. I am using GWT 2.5.1 . The issue is that i am sending a string to query via the URL. If that string contains special character like % or ^ or...

Java exception detected in safari but not detected in IE?


java,internet-explorer,nullpointerexception,safari
I have a java applet code that works fine when it's opened from IE, but if it's opened from Safari, Java console produces a nullpointerexception. The code that generate this behaviour is shown below: public class MsgBoxPanel extends JDialog { Panel panel1 = new Panel(); JLabel label1 = new JLabel();...

Inspect element from my WPF WebBrowser, using “inspect element(s)”(IE,Chrome,Firefox) to get the css path(“copy css-path”)


c#,wpf,.net-4.0,webbrowser-control
I need the correct css path from a webpage, which will be displayed in my WPF application(to use it later with HTMLAgilityPack and/or Fizzler). Something like this, to "copy css-path" or xpath(FireBug), should be the final goal. I also found some interesting post like: stackoverflow stackoverflow stackoverflow codeproject They all...

XMLHttpRequest: Network Error 0x80070005, Access is denied on Microsoft Edge (but not IE)


javascript,ajax,internet-explorer,cors,microsoft-edge
I have a very simple ajax request (see below). The server is using CORS and works fine in IE 10+, Chrome, Firefox and Opera. On Microsoft Edge however, it fails with XMLHttpRequest: Network Error 0x80070005, Access is denied. I have researched the posts here, here, here and here, but cannot...

Internet Explorer 11 default document view mode to Edge


jquery,asp.net,internet-explorer,networking,intranet
I have windows 7 and IE 11 installed in my local machine. I working on ASP.NET, C# web application used bootstrap, Jquery etc. I have created one checkbox dropdown list (ref: http://www.aspsnippets.com/Articles/Multiple-Select-MultiSelect-DropDownList-with-CheckBoxes-in-ASPNet-using-jQuery.aspx). But my local intranet website is showing default document view mode 7 and check box drop down list...

Background-image style with JS not working in ie9


javascript,jquery,html,internet-explorer
I'm working on a site and im having some issues with my slider in IE9. What I've done is that I've made a div that gets the background image changed every few seconds depending on the img tags within. You can see it in function here: http://diakondk.quine.pil.dk/ It works wonders...

String replace with regex, ie strange results


javascript,regex,google-chrome,internet-explorer
Why i have this results? "hello world".replace(/[']/gi, "\\'"); // on chrome => "hello world" "hello world".replace(/[']/gi, "\\'"); // on ie => "hello world" "hello world".replace((/[']/gi).compile(), "\\'"); // on chrome => "hello world" "hello world".replace((/[']/gi).compile(), "\\'"); // on ie => "\'hello world" Chrome: 43.0.2357.124 m IE: 11.0.10011.0...

Span display IE


html,css,css3,internet-explorer
I wrote this code, it's a link with transition .pictos { display: block; height: 70px; margin: 160px 0 30px; padding: 0 17%; width: 100%; } .pictos > div { background: none repeat scroll 0 0 rgba(0, 0, 0, 0.2); border: 1px solid #fff; border-radius: 50%; display: table-row; float: left; height:...

VBScript to detect Facebook IE window, press Like and close the window


facebook,internet-explorer,vbscript
I tryed to make a script to detect the IE window that is opened on Facebook and hit the Like button. Let's say I have 10 IE opened. Only one of them is on a page on Facebook. I want my script to detect that IE window, click this button:...

IE 11 browser back button Detect


javascript,jquery,internet-explorer
How do I detect the browsers back button is clicked in IE 11 browser. In IE <10 browsers we can achieve this functionality using the following: (window.event.clientX < 40 && window.event.clientY < 0). Please share your thoughts....

OverCls is not working in IE11


javascript,css,internet-explorer,extjs
I am working with extjs 4.2 and need an advice to solve this small bug. I have an extjs button in my js file as: { xtype : 'button', text : 'Add Drive', padding : '10px 10px 10px 10px', overCls : 'overDrive' } and my in my css i have...

correct HTML pages won't load in IE10


javascript,jquery,html,internet-explorer,browser
I'm editing someone elses webpage for content, by changing the HTML files on the drive, adding text, comments, wtv. I'm not a web designer, so this is the only way I knew to do it. On most browsers, my changes show, but on internet explorer, sometimes it will revert to...

How to rotate and translate using CSS in IE8?


css,internet-explorer,internet-explorer-8
We've added some new fancy css to our page that uses transform rules, however we need to keep compatibility with IE8 and those rules don't work there. All we did was rotate and translate a few elements and I managed to do the rotation in IE8 using this code: -ms-filter:...

IE 10 Flexbox height bug?


html,css,internet-explorer,internet-explorer-10,flexbox
I am unable to figure out why IE10 adds extra margin's or height to the green element below. http://jsfiddle.net/q4ofmfar/ Expected style as displayed by most browsers: Incorrect style as rendered by IE10.0: http://jsfiddle.net/q4ofmfar/ HTML <div class="row"> <div id="box1"> <div> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris dapibus vehicula...

Fixed position misbehaviour in IE11


css,internet-explorer,css-position,css-transitions,internet-explorer-11
I am experiencing elements position misbehaviour into my page, in IE(11) only; live link here. The logotext, the menu and the left sidebar text, remain in place doesn't move with the wrapper when the left slider is open (clicking on info+ button). I've read about position: fixed + transition in...

VBA skipping code directly after submitting form in IE


vba,internet-explorer,excel-vba,web-scraping
Currently I have 2 pieces of code that work separately, but when used together they don't work properly. The first code asks the user to input information which is stored. It then navigates to the correct webpage where it uses the stored user input information to navigate via filling and...

SSL certificate error 403.13 in IIS 7.5


internet-explorer,iis-7,ssl-certificate,sha1,http-status-code-403
I'm getting 403.13 in IIS logs, when I'm trying to access my api using the created certificate(sha1). Further I tested the same certificate in other test environment it works treat and I get the the XML from the api without any issue. Certificate pfx is installed in Certificate store and...

“linear-gradient” not working in IE9 and Safari


html,css,css3,internet-explorer,safari
I try to apply a style to a button but this style displays well on Mozilla and Chrome then it is not the case for Safari and IE9. Here is the css class: #bt_D{ width:130px; height:30px; box-shadow:1px 2px 4px rgba(0,0,0,0.60); font-size:12px; background-image:linear-gradient(60deg, rgb(231,110,49), rgb(231,171,49)); border:1px solid rgb(180,180,180); border-radius:5px; float:right; text-align:center;...

Inconsistent display on IE & Firefox


html,css,internet-explorer,firefox,twitter-bootstrap-3
I'm using Bootstrap on my website project. I'm through with the design but the items are displayed out of place on IE & Firefox. The same page renders great on Chrome. I used developer tools on the three browsers to make sure there was no difference in the CSS properties....

Link with negative z-index not clickable in IE


html,css,internet-explorer,z-index
Can anyone give me a hint why the link in the gray box is not clickable in Internet Explorer (I'm using version 11). http://jsfiddle.net/rk7n7xjj/1/ I tested it in any other browsers and it works fine. HTML <div class="gray"><a href="#bla">This link is not clickable in IE</a></div> <div class="yellow">Some placeholder text</div> CSS...

AJAX in Internet Explorer 11 - Don't cache


javascript,ajax,internet-explorer
I have an issue with AJAX in the IE 11. My page is asking sone values via AJAX form the server using this code: var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp = new...

What is the proper way to get the value of a React