1. always with the frame
9. prevent a person from being frame
Web pages will not be saved as
Look at the Web page source code
onclick= "window.location =" View-source: "+" http://www.pconline.com.cn "" >
Confirmation at deletion
Delete
In JS we have to judge that a string appears in another string, using IndexOf to look at its syntax
Stringobject.indexof (Searchvalue,fromindex)
ParametersStrobjRequired option. A string object or text.SubstringRequired option. The substring to
LastIndexOf Method:
Returns the last occurrence of the substring of a string object.
Stringobject.lastindexof (Searchvalue,fromindex)ParametersStrobjRequired option. A string object or text.SubstringRequired option. The substring to find within
* Following IE instead of Internet Explorer to Mf/ff instead of Mozzila Firefox/
Window.eventie: there are window.event objectsFF: no Window.event object. You can pass an event object to a parameter of a function. such as
Object Properties
Document.title//Set document title equivalent to HTML title tagDocument.bgcolor//Set page background colorDocument.fgcolor//Set foreground colors (text color)Document.linkcolor//not-clicked link colorDocument.alinkcolor//Activate
Quote from Wikipedia:
A quine is a computer program, it does not accept any input, and the only output is its own source code.
@cowboy (Ben Alman) gives a quine program written in javascript:!function $ () {Console.log ('! ') +$+ ' () ')}
Reproduced in: http://jiangzhengjun.iteye.com/blog/458869JavaScript decimal When doing arithmetic, the accuracy will be lost, this will cause a lot of inconvenience in the project, first see the following script: According to the normal calculation,
If you want to check whether a key was inside an Object or Array, you can use the ' in ':Object:const obj = { 'graphql', false}; Console.log ('name'in// trueconsole.log ( ' title ' inch // falseArray:ConstCharacters = [ 'Harry Potter', 'Ron
Script Loading and runningWhen a browser encounters a the defer property indicates that the script contained in the element does not intend to modify the DOM, so the code can be executed later. The corresponding JavaScript file will "Hight
JSONP is the JSON with Padding. Due to the limitations of the same-origin policy, XMLHttpRequest only allows resources to be requested for the current source (domain name, protocol, port). If cross-domain requests are made, we can make cross-domain
HTML tag and htmldl tag
A definition list: Computer the instrument used for calculation... display devices that display information visually...
Effect:A definition list:
Computer
The instrument used for calculation ......
HTML target and htmltargetDefinition and usage
the target attribute of a tag specifies where to open the link document.
If a tag contains a target attribute, the browser loads and displays the documents in the framework or window named by the href
Div, span, divspan
1. Html block elements
HTML can combine elements through and
Most HTML elements are definedBlock-level elementsOrInline Element,
When a block-level element is displayed in a browser, it usually starts (or ends) with a new line ).
Tip: you can modify some code before running Multi-row text box that can be stretched/shortened与之间-->与之间--> Tip: you can modify some code before running
Tip: you can modify some code before running Javascript + div pop-up Layer CodeDear user:×1. The first Chinese WEB station provides you with professional knowledgeThe first stop of Chinese WEB will provide you with professional knowledgeThe first
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service