How to avoid ie8 compatibility button? - html
In IE8, the Microsoft introduced a new mode called compatibility mode which would render the page like IE7.
You can see this button next to address bar in stackoverflow.com. But when you access google.com / live.com, you would not see the compatibility mode button. How do we make sure the pages don't show this button the user?
Short answer:
Put this in your head tag to tell the browser that your page works in IE 8:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
Also as per Jon Hadleys comment, to ensure the latest (not just IE8) rendering engine is used, you could use the following:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
From here:
Sometimes the Compatibility View
button isn’t displayed.
The button is located on the address
bar next to the ‘stop’ and ‘refresh’
buttons. There are a few cases where
there’s no action for a user take and,
thus, the Compatibility View button
will not show:
If you're viewing an
internal-to-Internet Explorer page
(such as about:InPrivate)
If you're viewing a page that has declared it's
"ready" for Internet Explorer 8
through use of the versioning
tag / HTTP header (it doesn’t matter
if this tag triggers Quirks, IE7
Standards, or IE8 Standards, the
button won’t be displayed)
If you're viewing an intranet page and you have
the ‘Display intranet sites in
Compatibility View’ checkbox selected
If you're viewing any webpage and you
have the ‘Display all websites in
Compatibility View’ checkbox selected
If you're viewing a webpage that is
included on the Microsoft-supplied
compatibility view updates list and
you have the ‘Include updated website
lists from Microsoft’ checkbox
selected
If you've toggled either the
‘Document Mode’ or ‘Browser Mode’
settings via the Developer Toolbar
So you're probably after the versioning tag / HTTP header which is described in more details in that blog post and over here.
If the "Display intranet sites in Compatibility View" or "Display all websites in Compatibility View" settings (found under Tools -> Compatibility View Settings) are enabled (as they relate to the website being viewed), then no matter what you have in the HTML of the document, the page will always be put in to some form of compatibility view.
This means that, even with in the document, you will still notice that the page is put in to compatibility view, and nothing you can do except disabling those settings will disable it, unfortunately.
As per this comprehensive MSDN article on Compatibility View, the following list describes different ways that enable Compatibility View:
You click the Compatibility View button in the Address bar when viewing a webpage. When displayed, this button appears to the left of the Refresh button and contains an image of a broken piece of paper. This enables Compatibility View for all documents in the domain of the website being viewed.
The "Display all websites in Compatibility Mode setting" in the Compatibility View Settings is enabled.
The "Automatically recover from page layout errors with Compatibility View" setting is enabled and a webpage stops responding or crashes the browser. When this happens, Internet Explorer opens the page in Compatibility View after recovering from the problem.
Group policies that identify sites to be opened in Compatibility View are enabled by the administrator of your computer.
You have used the F12 developer tools to change the browser mode to identify Internet Explorer as an earlier version of the browser.
The Compatibility View List is enabled, which defines a list of websites that are automatically displayed in Compatibility View.
To avoid/disable/override Compatibility View, you'll have to do the reverse of the actions suggested above.
The Compatibility View list is an XML file maintained by Microsoft.
To remove your site from the Compatibility View List (or to dispute
the removal of your site from the list), have the overall site owner
verify that the domain site appears in the Compatibility View List. If
it does, send an e-mail to iepo#microsoft.com that contains the
following information:
Owner name Corporate title Company name Street address Email address
Telephone number Website address
Microsoft will review the provided information and remove your site
from the Compatibility View List at the next scheduled update.
Below link was working fine in IE and it was showing menu bar properly
http://line25.com/wp-content/uploads/2012/css-menu/demo/index.html
But same content hosted on intranet, all links were displayed one below other instead of menu bar. Compatibility view button was not shown in address bar.
After below change, the menu bar got displayed correctly and compatibility view button got displayed in address bar.
Tools->Compatibility view settings->Uncheck "Display intranet sites in compatibility view"
Thanks a lot for this valuable input
I was having an issue with compatibility view, and it turned out some of my PHP files were being saved in UTF-8 character encoding, which I guess was confusing IE. The majority of the site files were saved in Codepage 1252.
Now, I set all the files to save as "Western European (Windows) - Codepage 1252" and my display issues went away.
The lesson here is, don't mix your character encodings.
Related
How do I force a SharePoint site to turn off compatibility mode and render in IE Edge without access to SharePoint Designer?
My SharePoint site pages are rendering in ie8 by default even though I am on IE11. I do not have access to sharePoint Designer so I can't edit the master page unfortunately. How do I force my site pages to show in IE Edge?
goto http://sitecollection/_catalogs/masterpage/Forms/AllItems.aspx and download the masterpage, edit in notepad/whatever then upload it again. (alternativly open with explorer view, and use Notepad++ or something that can open a URI location, make the change and save it.
Link of a PDF not working in Mozilla but works in Chrome
I made a button for a PDF download that is working well in Chrome but it doesn´t open in Mozilla. This is the code I used: <a target="_blank" href="http://gerster.com/docs/posamenten_neuheiten_2014_2.pdf">Jetzt PDF-Katalog herunterladen</a> What could be wrong? Note: No error is showing up.
Q Using window.open or "target=" such as blank it doesn´t open in ### Browser What could be wrong? It is up to each user to download or permit binary.PDF running in a browser viewport after download, this is especially true after download fron any non trusted site. OOB many browsers assume they can sandbox the PDF download and then allow as default action review of the PDF file. Chromeium based browsers like Edge may be more inclined to use that before the user improves their security. So the 1st task for a user should be to switch off Edge auto viewing of PDFs and switch to a more secure setting. In that case Edge / Chrome and other browsers will NOT auto run the downloaded PDF but ask the user if they wish to View after Download or simply Download. One of the possible values of that attribute is _blank, which tells the browser to open a new window (or tab, if that’s the user’s preference) when that link is clicked. This used to be “invalid” in HTML see A Bad Reason: The link is to a PDF If you are going to do it, not only do you need the target attribute for the functionality, you need to rel attribute for security. So do not open yourserver to security issues blacklist or pop-up blocking see https://mathiasbynens.github.io/rel-noopener/ Don’t use target=_blank (or any other target that opens a new navigation context), especially for links in user-generated content, unless you have a good reason
Why doesn't a website display properly in Google Chrome normal mode but displays fine in Incognito mode and all other browsers?
In my end the webpage looks good but in my client's end the page doesn't load properly or just the vertical lines show up without the text and images. Link to the website : http://www.krishnaprasad.me/Iadmire.html (Inactive now). The website looks fine in all browsers for my client except Google Chrome that too in normal mode. I've used Foundation 5 framework for developing this site. If it's an issue with browser's extensions/plugins at my client's side, can I automatically disable that?
Let's start with the easy part: You cannot disable a plugin or extension from within JavaScript (if that's what you meant by automatically disabling). The only way that I know of to disabling those is for the user to actually open the Extensions page in their Browser Settings and manually disable those. You can, however, detect the presence of problematic plugins or extensions in JavaScript and, for example, redirect the user to another page where you ask them to disable those plugins. I've taken a look at the page and I found the culprit: One of elements had an id of adcontent, which I am guessing is black-listed by either Chrome or one of the plugins. I believe that if you could change that id to something else, and adjust the CSS appropriately, the issue should be fixed.
iPad Full-Screen Mode Allow Browsing
I would like to use apple-mobile-web-app-capable to allow a user to browse a website like a kiosk, without the navigation bar and the page fullscreen. This works well until a link is clicked, then it opens Safari. Is there any way to use this fullscreen mode and allow clicking of links without being taken to Safari?
I asked a similar question over on AskDifferent - Hiding URL Bar on iPad. The answer I received there suggested distributing the web app's configuration file, which allows you to configure many more options. The end-user must agree to the profile installation, but having a controlled device will limit any frustration with this fact. The details of this were linked to in the above answer, but it appears to be broken now. Alternatively, Chrome has a full screen browser mode that can be taken advantage of. Given a controlled device you could simply use the alternative browser.
html - how do I make a page load in a new tab in IE8?
What combination of html and IE8 settings get IE8 to open links in a new tab. Or can you not do this with IE8, and you only get the new tabs by manually selecting File-> new/duplicate tab? My website works in Firefox - pages on the site load in the current tab, and links off site load a new tab. IE8 won't behave: target="_blank" opens a whole new window; the other options, _self _top _parent, all open the page in the current tab. I have Firefox set to "Open new windows in a new tab." The links to pages on my site all have target="_self" and Firefox keeps these in the current tab. On the external links I don't have a target set (I added _blank to see if it fixed IE8, and doing that didn't affect Firefox). I can't find an equivalent setting in IE8. Tools-Internet Options-General-Tabs/Settings has an enable tabs box, and a sub-option to automatically switch to newly opened tabs. Is there some html that will work? An IE8 setting I'm missing? Any help appreciated.
It is not a thing you can control from HTML code, as it should be user's, not document author's decision how to open a link. To open pop-up windows in new tab, follow instructions from IE8 help: To change how pop-ups are displayed In Internet Explorer, click the Tools button, and then click Internet Options. Click the General tab, and then, in the Tabs section, click Settings. Make a selection in the When a pop-up is encountered section. Click OK twice. Updated: Reading OPs comments to other posts, it seems like the intent is to make all external links open in new tabs. However, it is not document author's choice how the client should open any link in any page - it has to be decided by the client. Moreover, even though you can create a client-side script which sets "target" property to open pop-up windows, there is no notion of "tab" in Document Object Model and hence you cannot do it even in a script.
The answer to the question was posted in the comments (but is now deleted). Now you can test it in IE8 - just use the middle mouse button to open the link in a new tab. Firefox does work better with tabs.
How the browser interprets the target is browser dependent - each vendor will specify what they want. Firefox decided to use a new tab, IE decided to use a new window. The html 4.01 spec has this to say on "_blank": The user agent should load the designated document in a new, unnamed window. The spec predates the wide usage tabbed browsing now has, so doesn't mention the concept anywhere.
Opening a page in a new tab is concept that believe is not covered by the html standard. The Firefox behavior is just a setting in the browser, which IE8 might or might not have. On a related note, I personally find it abusive of websites to make the choice of opening a page in a new tab/window. What if I want it to open in the current tab/window? Of course, in a rich application-like site that is basically entirely an application I find it convenient that pages open in a new tab/window. This makes them work more like desktop apps For normal pages, I would suggest not setting the target at all and let the user decide.
I think W3.org is still working on this issue, but it isn't implemented in any browser yet. Also remember that Internet Explorer will be the last browser to implement it ;) This is code copied from a W3 Working Draft: /* If a user wanted to have new windows open in new tabs instead, she could use the following user style sheet to do so: */ * { target-new: tab ! important } Of course, it is impossible to set user preference in HTML or Javascript -- it would be unsafe.