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

Embed webbrowser control inside IE


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> ...


According to MSDN, since IE6 you should use an iframe instead:

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.


Edit: However, after the first navigate, any other method calls or property accesses result in "access denied". This is apparently by design:

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.


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

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";...

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

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...

Use Google Map V3 API ClientID in Application with no URL

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...

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

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...

jQuery & CSS only load after many refreshes

If you open this page in IE11, the CSS and jQuery don't load: If you refresh the page once, maybe even twice, it still doesn't load. But if you hit F5 a bunch of times in succession, the CSS and jQuery finally load and the page displays correctly. This...

OverCls is not working in IE11

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

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...

“linear-gradient” not working in IE9 and 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;...

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

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...

Developers tool(F12) is opening in Internet Explorer when it is launched by watir-webdriver

I am automating a web application on Internet Explorer using Watir-webdriver and ruby. When I run my script in my Laptop[Win7(x64) and IE11] it is running without opening Developers Tool in Internet explorer. But When I test the same script in Virtual Machine[Win8(x64) and IE10], Intenet Exploerer browser opening with...

How to rotate and translate using CSS in IE8?

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:...

SSL certificate error 403.13 in IIS 7.5

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...

Inconsistent display on IE & Firefox

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....

IE 11 browser back button Detect

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....

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

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...

Internet Explorer hover/rgba/opacity/css3 compatibility

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: div...

Java exception detected in safari but not detected in IE?

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();...

Select item from ComboBox to open web links on WebBrowser?,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 to set the IEDriverServer.exe through command line in 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 "['']" conf.js I am getting the error: var template = new Error(this.message); ^ UnknownError: The...

Call onkeyup function while doing 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...

AJAX in Internet Explorer 11 - Don't cache

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...

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

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="" target="_blank">google</a></li> <li><a href="" target="_blank">apple</a></li>...

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

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:...

Fixed position misbehaviour in IE11

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...

Font Face issues in Internet Explorer 8

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...

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