microsoft-edge

How to prevent a blank tab from appearing in Edge when clicking on a file link

百般思念 提交于 2019-12-02 07:26:47
I have a html page with several links to files with various file types, such as pdf, csv, and zip. Depending on the available browser plugins, some of these files can be opened inline by the browser, whereas others will be downloaded. I don't want such links to open in the current tab, so each one has the attribute target="blank" . This works fine in most browsers: When the user clicks on a link to a file that can be displayed inline, the file is shown in a new tab. Otherwise, a new tab is opened and immediately closed as soon as the file starts to download. The user stays in the current

Module import or export statement unexpected here

依然范特西╮ 提交于 2019-12-02 05:40:52
I have problem with importing JS scripts from code. I have a canvas game, and want to import my classes rather than define they in HTML. But when I run my code in Edge, it throws me an error. init.js import {Tram} from "./tram/tram" var body; var curScreen = "menu"; var canvas = document.createElement("canvas"); canvas.width = 1920; canvas.height = 1080; var ctx = canvas.getContext("2d"); var tex = {}; var corrHeight = loadTextures(); window.onload = function () { body = document.body; body.appendChild(canvas); window.onclick = function () { if (body.requestFullscreen) { body.requestFullscreen

Video.js jQuery disrupting video play/pause functions in Microsoft Edge

情到浓时终转凉″ 提交于 2019-12-02 04:35:15
问题 I am trying to use video.js to prevent fast-forward, but allow rewind, for mp4 videos on a Moodle site. The following script works in Chrome and Opera, but not in Microsoft Edge: window.onload = function() { if ($('iframe').length > 0) { $('iframe').ready(function() { var videoPlayer = $('iframe').contents().find('video')[0]; var cssLink = document.createElement("link") cssLink.href = "https://vjs.zencdn.net/5.0/video-js.min.css"; cssLink.rel = "stylesheet"; cssLink.type = "text/css"; $(

How do I show an error page when users visit my site using Microsoft Edge?

自作多情 提交于 2019-12-02 03:55:54
When a user loads my website in Microsoft Edge, I need to show a page like in the below image: I can see like this page when I'm trying to access sites like www.naver.com or www.daum.net on Edge. That page looks like a Provided from Microsoft , and I guess there are Any Javascript function to call this pages I need to know how .. Malte Lantin If possible you should avoid browser detection and move to modern web technologies that work across browsers. A great tool you can use is the sitescan on http://dev.modern.ie/tools/staticscan/ that helps to identify common issues, like outdated js

Window.opener in Microsoft Edge undefined when running at localhost

泄露秘密 提交于 2019-12-02 03:33:44
I'm using Microsoft Edge in localhost for development. Website is accessed via http://localhost I open a popup and want it to post a message to the opener via window.opener.postMessage My code works with Chrome, and Safari, and even Microsoft Edge when the website is on staging or production. But when I run in in local mode, the window.opener is undefined. CORS on localhost is tricky so try to create a domain name you like to your hosts file (%windir%\System32\Drivers\etc\hosts) - if you're in a Windows-based platform and map those back to 127.0.0.1. You probably already know how to change the

Edge browser appears to discard response payload

五迷三道 提交于 2019-12-02 03:30:51
I have a web app that returns a PDF to the browser, which works fine in Chrome and Firefox, however it does not work in Edge (version 38.14393.0.0). The response header looks like this: Access-Control-Allow-Headers: Content-Type, Authorization Access-Control-Allow-Origin: * Cache-Control: no-store, no-cache, must-revalidate Content-Disposition: inline; filename="Invoice.PDF" Content-Length: 9255 Content-Type: application/pdf Date: Mon, 30 Jan 2017 04:38:25 GMT Pragma: no-cache Server: Microsoft-IIS/10.0 I've seen other questions suggesting that 2 requests are sent from Edge, one of which

How to start Edge browser in Incognito mode using selenium remote webdriver?

≯℡__Kan透↙ 提交于 2019-12-02 03:06:32
问题 Currently we are working on selenium (2.53.0) with Edge browser using C#. Edge browser stores cache information at 'localAppdata' folder because of cache, we are facing some issues while test cases execution. I try to delete all cookies information using selenium (DeleteAllCookies) but it not working for Edge browser. I read couple of Microsoft forums only way to skip cache, when we start Edge browser on incognito mode. Can any one suggest how to start Edge browser instance in private

IE/Edge click on SVG causes error - TypeError: Object doesn't support property or method 'blur'

有些话、适合烂在心里 提交于 2019-12-02 01:39:07
I'm using an angular component (Angular UI pagination, although I don't think it's the cause of the problem), and my template includes the following... <my-button ng-click="selectPage(totalPages, $event)"> <svg> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="domain.com/scgSprite.svg#arrow"></use> </svg> </my-button> The problem is that in MS Edge and IE (but not chrome) I get the following error when clicking the button. TypeError: Object doesn't support property or method 'blur' It doesn't happen when I click on the button but on the edge where there is no icon. I have to

MS Edge: IntersectionObserver. Does it work for you?

蹲街弑〆低调 提交于 2019-12-02 00:38:53
问题 Before anyone goes to too much effort here, I already have a nasty workaround. I just want to know if anyone has it working. Version 15 of Edge is now released and has support for intersection observer (for lazy loading). I've implemented it and it works fine in all browsers which support it (Chrome and Opera. Firefox and Safari haven't implemented yet) but not at all in Edge. There are no errors thrown, but the callback is never called. handleIntersectionElement(elm) { if (elm && this.state

How to remove a auto hyperlinked phone number from Microsoft Edge

荒凉一梦 提交于 2019-12-01 22:37:37
问题 I have time stamps on a web application in the form of 1 2015-08-06 15:16:54 which keeps getting decorated by Microsoft Edge browser as phone number links. I do not want this. Apparently, this is a 'tel' protocol and clicking on it will try to open whatever application is configured to work with the 'tel' protocol. I know there is a meta tag you can add to pages to prevent them being decorated as such on iOS devices, but how would I do this on the Microsoft Edge browser? 回答1: The solution