Today in the project, encountered the front-end download Excel function, the result of the original code, as follows:function Generate_excel (tableid) {var table = document.getElementById (TableID);var html = table.outerhtml;window.open (' data:application/vnd.ms-excel;base64, ' + base64_encode (HTML));}This kind of writing, can only support ff,chrome, cannot support under IE. Search on the Internet, you can not find a better jquery plug-in, the ability to cross three platforms simultaneously, t
With the rise of third-party browsers represented by Firefox, our website cannot be just ie any more.
Code Browsers other than IE often fail to run normally or encounter errors. So here we will introduce how to improve our JS so that it can be more standardized and compatible.
Sample Code:
Try to use W3C dom
The previously accessed objects may be:Document. All. Apple or appleNow we should use:Docume
Currently, if javascript is used to write the code copied to the clipboard, it is generally not compatible with browsers. So we can use flash to simulate a layer and then copy it to make it suitable for all browsers ~Download a swf file and a js file. Put the two files together with htm.Figure:
It must be used on the server.
Figure:
JS Code:
Copy codeThe Code is as follows:
ZeroClipboard. js
// Simple
Failure phenomenon:
When we download files or programs from the Internet using a browser or download tool, these tools are automatically saved to the path of the tool, and if we are not looking carefully, it is often not easy to find out where the files are stored.
Solution:
IE browser
The default download path for IE browsers is: c:users Current account name downloads
Man-in-the-middle attack caused by improper handling of TLS certificates by the Cheetah and 2345 browsers
When the SSL/TLS certificates provided by the https web pages opened by the two browsers are invalid (such as self-Signed and Domain Name Mismatch), the pages are automatically opened. A text prompt is displayed on the cheetah Security browser. 2345 the accel
OrderBefore writing the article, first to recognize a mistake, in fact, this article and the next article will be written should be completed last month. But, for some reason, not to come and finish. Therefore, the debt owed last month is now made up. Nonsense not much to say, directly on the content.ProblemChildren who have done web development know that after opening the site, it is generally necessary to enter the user name, password. However, this
Html5 tags are compatible with earlier browsers and html5 tags
As html5 (represented by h5 later) labels become more and more widely used, it is annoying that IE does not recognize h5 labels.
In Firefox, chrome, and other browsers, if you encounter unknown labels, you only need to give a display: block attribute to make this element a div-like element, however, it is disgusting to be on IE. If you do not
When downloading jar files in IE and other browsers, change the suffix to zip and other problems and solutions
The recent jar download has encountered the following problems during this process:
1. When downloading jar from IE, roaming, and TT, the suffix jar will be changed to zip;
2. When Firefox and opera click to download the JAR file, the JAR file is opened in the browser and garbled characters are displayed;
360 and windows of the world can be
In projects, Excel files are often exported. If you are not on the server side, the rich client uses Javascript scripts to process data and export files. A common method for exporting files to an Excel file is to call: activeXObject ("Excel. application "), but this method has limitations and can only be implemented in browsers in the IE series, but the compatibility is not ideal.
After testing, the recommended method can export the table content t
IE and other multi-TAB browsers log on to a TAB and then open a new TAB to open the same Web site. how can I determine whether I have logged on to the login page and asked this question before? However, I think the answer is incomplete, after you log on to a TAB in hotmail, the new tab is displayed on the logon page. How to implement it? IE and other multi-TAB browsers log on to one TAB and then open a new
Js perfect implementation @ mentioned Friends special effects (compatible with various browsers)
This article will share with you a special effect that uses javascript to perfectly implement @ friends auto-prompting compatible with various browsers. It is based on the effect of Baidu Post bars and is recommended to our friends, I hope you will like it.
Requirements
1. When @ is input, the matched friend m
. Considering the use of ul and li pages, you can add # menu1 in front of css to limit the menu style range.
2. js listens to mouse movement and removal events, switches to the limouseover and limouseout styles, and changes the display attribute of sub-menus to hide the display.
3. The same page can be called repeatedly without conflict. The JavaScript code in the html code is a call instance. The preceding menu1 is an arbitrary variable name, And the
The software industry should be a mature industry and there should be no oligarchy or dual-headed monopoly. However, the current web browser market is completely controlled by the three giants in the Microsoft, Google, Apple and other technical industries. How can this be explained? All three vendors have developed important browser development plans and regularly updated browser products. Of course, in addition to them, there is also a Mozilla Foundation. Firefox open-source
IE and other multi-TAB browsers log on to a TAB and then open a new TAB to open the same Web site. how can I determine whether I have logged on to the login page and asked this question before? However, I think the answer is incomplete, after you log on to a TAB in hotmail, the new tab is displayed on the logon page. How to implement it? IE and other multi-TAB browsers log on to one TAB and then open a new
Google browser recognition @media screen and (-webkit-min-device-pixel-ratio:0) {height:10px;} IE6 specially identified *html. searchbox {height:10px;} Firefox browser kernel @-moz-document url-prefix () {. font1 {color:red}} II, for style name If only let IE6 see *html. Head{color: #000;} If only let IE7 see *+html. Head{color: #000;} If only FF is visible : root body. Head{color: #000;} If only FF, IE8 see Html>body. Head{color
HTML5 appear also not short, many web pages have been revised, in order to reduce the amount of code (do not need to play too much class name), improve loading speed, improve the semantics of the label, so in the Web page, a large number of use of section,article,header and other HTML5 tags. My recent example of writing a responsive layout also uses tags such as headers. Still more want to be able to make compatible "old version browser", here and sha
=document.getElementsByTagName ("Link")[0]; + varLink2=A.sheet||a.stylesheet; - //Comparison of the results of two different methods the Alert (link1==link2);//true * $ //get the CSS code from the external style sheetPanax Notoginseng varrules=Link1.cssrules||link1.rules; - the //attempt to output all style rules + Alert (rules.csstext);//undefined a the //get the first style rule in an external style sheet + varRule=rules[0]; - //output The first style rule $
also be written together as follows:
Obj. addEventListener ("click", function () {alert ("test") ;}, false );
Note that attachEvent events include on, such as onclick, while addEventListener does not include on, such as click.
Combined:If (window. attachEvent)
{
// AttachEvent code
}
Else
{
// AddEventListener code
}
By the way, the third parameter of addEventListener (although rarely used) useCapture-if it is true, useCapture indicates that you want to start the capture. After capturing is sta
Method First, find the Control Panel on your computer, generally in the "start" above can control Panel. Then enter the interface of the Control Panel click on "Programs and features" which is the win7 option, if the XP system is "change Uninstall Application", then click to open it, find 360 browser click Uninstall it.
Method Two, if you install 360 security guards, can also find "software housekeeper-software Uninstall" above 360 security guards. Then you can find the 360 browser uninstall. A
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.