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> 

Related articles:

On the domain name registration, investment issues related explained
  International domain name registration trap    At present the three major domestic domain agents Channel, the new network million to the domestic network of general agents international domain name registration prices are 75,60,70 yuan.    Price stability of the market i...
You may not know grammar skills CSS
  1. CSS font definition abbreviated general wording of the rules is this:    Font-weight: bold;    Font-style: italic;    Font-varient: small-caps;    Font-size: 1em;    Line-height: 1.5em;    Font-family: verdana, sans-serif&n...
"Picture-in-picture" effect - on the use of marked Iframe
  Looking at current site, originally on some slow-speed network, but almost every page should take what Banner, the columns picture, a lot of copyright and other similar things, of course, out of uniform style Web site, advertising needs, beyond reproach, After all, can allow users to these w...
Done with CSS and javascript page picture of the simulation results fillet [to]
  Author link;    Http://pro.html.it/niftycube/    Examples:    Http://pro.html.it/niftycube/nifty2.html    WEB design done in time, the general met with fillet picture, they are to achieve. Fact can be used to achieve css + javascript As for the dire...
Web2.0 pushed by the General Assembly Nokia mobile RSS reader "peacekeeping" Letter
  Recently, the Nokia 2007 World Expo by web2.0 mechanisms, the high-profile launch of its mobile phone rss reader "peacekeeping letter."    It is learnt that Nokia's cell phones RSS reader is introduced in early 2007, has not previously carried out a large-scale promoti...