But IE6 two lines of JS code can be, IE7 above also similar, just come out a security hint more disgusting, the user if see, must have suspicion;
Again but is Firefox, Chrome and so on do not let you copy;
Remember before the Internet has this code, looked for a moment, found that all can not be in firefox3.5 above version should, finally found a, the code is quite quite complex, not too dare to use.
Finally, there is no way to suppress, check the data, since has written a:
A few points of the m
Test environment (client browser)
IE6,IE7, IE8 compatibility mode, IE8
Firefox 3.6.8, Google Chrome 5.0.375.125
The standard definitions of two functions are described first.
Elementnode.setattribute (Name,value)
Name required. Specify the name of the property to set.
Value required. Specify the property value to set.
This method sets the specified property to the specified value. If a property with the specified name does not exist, the method creates a new property.
Elementnode.getattribute
Windows Self-band method
Window.close ()
The code is as follows
Copy Code
This approach is a lot of problems, incompatible is not more introduced, the following we look at an example
Window.close () is OK, but it will give you a hint. The page you are viewing is attempting to close the window. Do you want to close the window? "How can you not eject this hint?""If you open this page for the first time, Window.close () will pop-up prompts, if this page is
Please create a new file testimage.html
Attention:
11 Filter effects for static pictures-Ie7 and non-IE browsers are not supported.Welcome and invite Month Exchange, net technology and software architectureThe contents are as follows (can be modified by oneself):
Copy Code code as follows:
Translucent Opacity: Transparency at the beginning.
Finishopacity: The transparency at the end.
Style:0 is the average transpare
Recently inexplicably found IE can not surf the Internet, other browsers are normal, other applications are normal
Finally found out that the problem is on IE agent
The solution is shown below:
1, set
2, connect
3, LAN settings
4, only check the automatic detection settings, cancel other
The problem is here, http://127.0.0.1:23940/proxy_on.pac?nocache=1476086581782843400token=. 20be4ee35be9ae8c47fdd9e1111b8d32
This URL may be my local agent, d
Ajax compatibility issues in different browsers are troublesome, and I have encountered this problem in recent projects. And used a strange way to solve it, and now come out to discuss the discussion:
The following is the front-end code:
The default CSS attribute values of the FORM and its friends in different browsers are inconsistent.
We usually need to define CSS that removes the default HTML Tag style when defining CSS styles, because the default styles shown in different browsers are inconsistent, we need to ensure that they can display the expected results in different browsers, so we nee
JQuery encapsulates common attributes of events in compliance with W3C specifications, this allows event processing to run properly in various Browsers without the need to determine the browser type. Before introducing jQuery, we will first introduce jQuery. event. fix (event | window. event); this method converts the event object of the browser to jQuery. event; if your event is bound using the jQuery method, you do not need to convert it!
JQuery en
This article describes how to use JavaScript to obtain information icons of various browsers. For more information, see
How to obtain browser Information
Window has a navigator object to let us know all the information about the browser. We can use a series of API functions to know the information about the browser.
The JavaScript code is as follows:
The Code is as follows:
function message(){ txt = "
Browser code name: "+ navigator. appCodeName +"
Text address: http://taligarsiel.com/Projects/howbrowserswork1.htm
Reference: http://blog.csdn.net/zzzaquarius/article/details/6532299How does a browser work.Introduction:Browsers can be said to be the most widely used software. In this articleArticle, I will explain how they work behind the scenes. We will see what happened when you typed 'Google. com' in the address bar to the middle of the page in the browser.
The browser we will discuss
Currently, we mainly use five types of
Due to historical reasons, there are differences in page rendering in various browsers. Even in different versions of the same browser, page rendering is different. Before the W3C standard was introduced, there was no unified specification for page rendering by browsers, resulting in a difference (quirks mode or compatibility mode). Due to the introduction of W3C standard, the browser provides a unified sta
Do you still remember the nasty Browser Wars a few years ago? Nothing returns the same result on different browsers. Whether you believe it or not, these wars are still going on, although the scale is small. But it is strange that XMLHttpRequest has become one of the victims of the war. Therefore, you may need to use different methods to obtain the XMLHTTPRequest object. I will explain it in detail below.
Use the Microsoft browser
Microsoft Inte
Css wants to introduce a font by itself. Is it a little afraid that different browsers do not support it? Css wants to introduce a font by itself. Is it a little afraid that different browsers do not support it?
Reply content:
Css wants to introduce a font by itself. Is it a little afraid that different browsers do not support it?
At the earliest, there was a browser called NCSA Mosaic, labeled ncsa_mosaic/2.0 (Windows 3.1), which supported text display while supporting images, so the web began to get interesting.Then appeared a new Web browser, "Mozilla", actually is "mosaic Terminator" meaning, this make mosaic very uncomfortable, (after all Mosaic debut early, lake old), new browser finally officially announced the name is Netscape, It is more fun to label yourself as mozilla/1.0 (Win3.1). Netscape Support Framework sh
For compatibility recently has been bothering me, previously written code is only for high-quality users to use regardless of ie7,8 such a browser, but recently I developed the time must be compatible, shouted I Cao, no way, come on! The so-called browser compatibility problem, refers to because different browsers have different parsing of the same code, resulting in the page display effect is not uniform situation. In most cases, our demand is that
careful, you can also define an object or array with many attributes and then delete some of them, leaving unnecessary commas.Copy codeThe Code is as follows:// Nonstandard Writing MethodVar p = {name: "Jack", age: 33 ,};Var ary = ["one", "two", "three",];// Standard writingVar p = {name: "Jack", age: 33 };Var ary = ["one", "two", "three"]; In addition, this problem may also occur when defining the direct amount of arrays. For example, the array has a comma at the end.Copy codeThe Code is as fo
JavaScript retrieves information icons of various browsers, and javascript retrieves icons
How to obtain browser Information
Window has a navigator object to let us know all the information about the browser. We can use a series of API functions to know the information about the browser.
The JavaScript code is as follows:Copy codeThe Code is as follows: function message () {txt = "
We can use this function to notify the user browser whether to update
Original: Http://www.alistapart.com/articles/beyonddoctype
Author: Aaron Gustafson . Com
Translator: Zhaozy in 3user.com. Com
Reprint please indicate the author and translator information, thank you!
Progress always comes at a price. For Web browsers, users are spending a lot of money on the editors and browsers (especially Internet Explorer), as the developers advertise the truth in their breasts. Whe
With more and more web design application of JavaScript technology, and browser JavaScript engine running speed has become a major browser performance indicators, the browser vendors are claiming that their browser faster, hoping to stir the existing competitive situation. The JavaScript speed of the IE8 browser is significantly higher than the IE7 and IE6, but there is a gap between the browsers of the WebKit engine and the Chrome browser's performan
This article mainly introduces jquery's method of using different css style sheets for browsers of different sizes. If you need jquery, you can refer to this method to support IE and other browsers.
1. Define two links first. Of course, you can also be one, and the second is the css to be changed.
The Code is as follows:
2. The following JavaScript code will change css based on different browser size
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.