Document directory
- I. Error
- Ii. Solution
- 3. Concepts of browsers to be understood
Solution to browser security error "Code:" 1000 Error
@ 2010-8-30 for & ever
Security error "Code:" 1000 error occurs when the webpage is running in the Firefox browser (you can view this error through firebugs ).
I. Error
Scenario 1,
File fields cannot be assigned values.
For example, <input type = "file" id = "file" value = "/> assign a value to this input string, and the error is returned.
Case 2,
Cross-origin scripts and CSS references
For example, a web page a.html runs on www.cnvqs.com, and a CSS style file is introduced in the header of the page.
<Link href = "http://img.cnvqs.com/css/a.css? Rand = 20100830006 "rel =" stylesheet "type =" text/CSS "/>
Then introduce Baidu's Js
<SCRIPT charset = "GBK" src = "http://www.baidu.com/js/opensug.js"> </SCRIPT>
This error is reported when you run the webpage.
Ii. Solution
For scenario 1, you can call form's reset () to clear the value of the original file domain, instead of clearing it by assigning values in Js.
In Case 2, you can add a line of code at the end of an HTML webpage file (for example, before the end of the body), as shown in the following code:
<Style> </style>
</Body>
</Html>
To solve the problem.
3. Concepts of browsers to be understood
Globalstorage
A browser object used to store information on the client.
In HTML5, it is suggested that after the browser is closed, the information stored using globalstorage can still be retained and the storage capacity is 5120 K under the same domain.
Like sessionstorage, information stored on any page in the domain can be shared by all pages.
The scope corresponds to the domain name of the storage, for example
Globalstorage ['img .cnvqs.com '] All pages under the img.cnvqs.com domain name can use this space
Globalstorage ['']: space available for all domain name pages
Currently, Firefox only supports globalstorage storage in the current domain, while the above case 2 is obviously the public domain used, so
"Security error" Code: "1000" appears ".
@ 2010-8-30 forandever