Common HTML skills
Related Tags:
How to click hyperlinks, indicate confirmation window:
1. In "head> </ head> add the following code.
<script>
Function winconfirm ()
(Question = confirm ( "indeed to enter?")
If (question! = "0")
(
Window.open ( "test.htm", "NewWin", "status = yes, Height = 200, Width = 200")
)
)
</ Script>
2. In "body> </ body> add the following code.
<A href = "test.htm"
OnClick = "winconfirm (); return false;"> point here </ a>
● your Home Add to Favorites code:
<A HREF="javascript:window.external.addFavorite('http://paf.126.com','D-元素欢迎您!')"> Click here add </ A>
● change Background colors
Code:
<A HREF="#" onclick="document.bgColor='red';"> red </ A>
● return function
Code:
Click here to return to <A HREF="javascript:history.back(1)"> </ A>
● refresh this page with JavaScript
Code:
<a Href="javascript:location.reload()"> refresh </ a>
● View source code:
<A HREF="javascript:window.location='view-source:' window.location.href"> View source </ A>
● pop-up confirmation window click here
Code:
<A HREF="javascript:alert('看到了吗!')"> click here </ A>
● confirm whether the pop-up window
Code:
<INPUT TYPE="BUTTON" NAME="Button" VALUE="单击这里" onclick="Button.value=confirm('你是男的吗?');">
● Display text in the status bar
Code:
<INPUT TYPE="BUTTON" VALUE="试一下" onmousemove="window.status ='你好!欢迎光临本站!'">
● JavaScript incident
Onkeydown keyboard when this incident?
Onkeypress the keyboard when the incident occurred
Onkeyup open up the keyboard when the incident occurred
Onmousedown mouse when this incident?
Onmouseup mouse decontrolled when this incident occurred
Onmousemove mobile when this incident occurred
Onmouseover into this incident occurred
Onmouseout out of this incident occurred
Onhelp according to the "F1" when the incident occurred
Onblur lose focus when the incident occurred
Onchange change the text of this incident occurred
Onclick click when the incident occurred
Onfocus be the focus when the incident occurred
Onload find open when the incident occurred
Onselect selected when the incident occurred
Onsubmit submitted when this incident occurred
Onunload closed when the incident occurred
Examples:
Please Bashubiaochidao here
Code:
<A HREF="#" onmouseover="alert(' Chidaoyanlijiufashengle onMouseOver事件了!')"> please Bashubiaochidao here </ A>
If you want to the keyboard in the entire window every time the implementation of a function key examples are as follows:
<script>
Function keydown ()
(Alert ( "You press the keyboard");)
Document.onkeydown = keydown;
</ Script>
Close Window
<a Href="javascript:window.close()"> Close Window </ a>
- Div borders
- Web production skills ------ DIV CSS style tags in the application design
- On the hidden div
- Div ?asp.net ? ?
- [Skills] CSS broadcast of the Super Skills
- Hidden in the website of the skills DIV
- Div + css ? ? ?
- CSS: ? ? ? ?div ? ?
- What is DIV?
- Css skills
- Div ? ? ? ¨°
- CSS skills learning: the same as table layout div
- DIV
- DIV and Layer
- Web design skills: how to hide in the pages of DIV
- Fillet div
- Div layer
- Internet search skills of the hookup skills
- [HTML] show / hide DIV skills (visibility and display the difference)
- Common DIV + CSS page layout production of technical skills




