Js code commonly used Collection

[size = medium] [size = x-small]
sk-net
asp.net note-blog garden Home Home Subscribe to flash a new contact management Suibi -0 comments -1 Suibi -130 article highlights common js code
1. Oncontextmenu = "window.event.returnValue = false" will completely shield the right mouse button
<table border oncontextmenu=return(false)> <td> no </ table> can be used for Table
2. <body Onselectstart="return false"> de-select to prevent the replication
3. Onpaste = "return false" are not allowed to paste
4. Oncopy = "return false;" oncut = "return false;" of copy -
5. <link Rel="Shortcut Icon" href="favicon.ico"> IE address bar, replace their icons before
6. <link Rel="Bookmark" href="favicon.ico"> in the Favorites folder icon shows your
7. <input> Close Input Method

<form action='group.asp?cmd=save' method='post' name='commentform' onKeydown='javascript:if(event.keyCode==13){return false;}'> press the Enter key to prevent the submission of Forms
8. Forever with the framework of
<script language="JavaScript"> <! --
if (window == top) top.location.href = "frames.htm"; / / frames.htm within the framework of web
/ / --></ Script>
9. To prevent any frame
<SCRIPT LANGUAGE=JAVASCRIPT> <! --
if (top.location! = self.location) top.location = self.location;
/ / --></ SCRIPT>
10. Page will not be saved as
<noscript> <iframe src=*.html> </ iframe> </ noscript>
11. <Input type = button value = View page source code
onclick = "window.location =" view-source: "+" http://www.pconline.com.cn "">
12. Deletion confirmation
<a href="javascript:if(confirm(" Are you sure you want to delete? ?"))location="boos.asp?&areyou= Delete &page=1""> Delete </ a>
13. To obtain the absolute position of the control
/ / Javascript
<script language="Javascript">
function getIE (e) (
var t = e.offsetTop;
var l = e.offsetLeft;
while (e = e.offsetParent) (
t + = e.offsetTop;
l + = e.offsetLeft;
)
alert ( "top =" + t + "/ nleft =" + l);
)
</ script>
/ / VBScript
<script language="VBScript"> <! --
function getIE ()
dim t, l, a, b
set a = document.all.img1
t = document.all.img1.offsetTop
l = document.all.img1.offsetLeft
while a.tagName <> "BODY"
set a = a.offsetParent
t = t + a.offsetTop
l = l + a.offsetLeft
wend
msgbox "top =" & t & chr (13) & "left =" & l, 64, "get control of the location"
end function
--></ script>
14. Cursor is parked in the text of the final text box
<script language="javascript">
function cc ()
(
var e = event.srcElement;
var r = e.createTextRange ();
r.moveStart ( "character", e.value.length);
r.collapse (true);
r.select ();
)
</ script>
<input type=text name=text1 value="123">
15. To determine the source of previous
javascript:
document.referrer
16. Minimize, maximize, close the window
<object"clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Minimize"> </ object>
<object"clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Maximize"> </ object>
<OBJECT"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM NAME="Command" VALUE="Close"> </ OBJECT>
<input type = button value = minimum
<input type = button value = maximum
<input type = button value = Close this case applies to IE
17. Shielding function keys Shift, Alt, Ctrl
<script>
function look () (
if (event.shiftKey)
alert ( "Prohibition of press Shift key!"); / / can be replaced with ALT CTRL
)
document.onkeydown = look;
</ script>
18. Page will not be cached
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
Or <META HTTP-EQUIV="expires" CONTENT="0">
19. How to make a form does not Aotu Gan?
<input type=text>
Or
<input type=text> </ textarea>
20. <div> <span> & <layer> The difference?
<div> (division) used to define large segment of the page elements will create a career change
<span> used to define the elements within the same line, with the only difference is that <div> does not produce career change
<layer> is ns marks, ie does not support, which is equivalent <div>
21. So that pop-up window always on top:
<body>
22. Do not scroll bar?
So that there is no vertical bar:
<body>
</ body>
So that there is no bar:
<body>
</ body>
Both get rid of? Be easier
<body scroll="no">
</ body>
23. How to get rid of image links clicked, images around the dotted line?
<a href="#"> <img src="logo.jpg" border=0> </ a>
24. E-mail address to submit the form
<form name="form1" method="post" action="mailto:****@***.com" enctype="text/plain">
<input type=submit>
</ form>
25. In the open child window parent window to refresh the code how to write?
window.opener.location.reload ()
26. How do I set the size of the page to open
<body onload="top.resizeTo(300,200);">
Open the page position <body onload="top.moveBy(300,200);">
27. On the page how to join is not a shop full of background image, pulling a page background image does not move
<STYLE>
body
(background-image: url (logo.gif); background-repeat: no-repeat;
background-position: center; background-attachment: fixed)
</ STYLE>
28. Check whether a string is composed entirely of numbers
<script language="Javascript"> <! --
function checkNum (str) (return str.match (/ / D /) == null)
alert (checkNum ( "1232142141"))
alert (checkNum ( "123214214a1"))
/ / --></ Script>
29. Get a window the size of the
document.body.clientWidth; document.body.clientHeight
30. How to judge whether the character
if (/[^/ x00-/xff] / g.test (s)) alert ( "contains the Chinese characters");
else alert ( "all characters");
31.TEXTAREA adaptive number of rows the number of words
<textarea rows=1 name=s1 cols=27 onpropertychange="this.style.posHeight=this.scrollHeight">
</ textarea>
32. Date minus the number of days equal to the second date
<script language=Javascript>
function cc (dd, dadd)
(
/ / You can add error handling
var a = new Date (dd)
a = a.valueOf ()
a = a - dadd * 24 * 60 * 60 * 1000
a = new Date (a)
alert (a.getFullYear () + "Year" + (a.getMonth () + 1) + "on" + a.getDate () + "day")
)
cc ( "12/23/2002", 2)
</ script>
33. Chose which one Radio
<HTML> <script Language="vbscript">
function checkme ()
for each ob in radio1
if ob.checked then
window.alert ob.value
next
end function
</ script> <BODY>
<INPUT Name="radio1" type="radio" value="style" checked> Style
<INPUT Name="radio1" type="radio" value="barcode"> Barcode
<INPUT Type="button" value="check">
</ BODY> </ HTML>
34. The script never wrong
<SCRIPT LANGUAGE="JavaScript">
<! - Hide
function killErrors () (
return true;
)
window.onerror = killErrors;
/ / - "
</ SCRIPT>
35.ENTER keys allows the cursor to the next input box
<input onkeydown="if(event.keyCode==13)event.keyCode=9">
36. Detection of a site link speed:
Put the following code into <body> area:
<script language=Javascript>
tim = 1
setInterval ( "tim + +", 100)
b = 1
var autourl = new Array ()
autourl [1] = "www.njcatv.net"
autourl [2] = "javacool.3322.net"
autourl [3] = "www.sina.com.cn"
autourl [4] = "www.nuaa.edu.cn"
autourl [5] = "www.cctv.com"
function butt () (
document.write ( "<form name=autof>")
for (var i = 1; i <autourl.length; i + +)
document.write ( "<input type=text name=txt"+i+" size=10 value= Test --> =" <input type = text
name = url "+ i +" size = 40> = "<input type = button value = GO
onclick = window.open (this.form.url "+ i +". value)> <br> ")
document.write ( "<input type=submit value= Refresh > </ form>")
)
butt ()
function auto (url) (
document.forms [0] [ "url" + b]. value = url
if (tim> 200)
(document.forms [0] [ "txt" + b]. value = "Link Timeout")
else
(document.forms [0] [ "txt" + b]. value = "time" + tim/10 + "seconds")
b + +
)
function run () (for (var i = 1; i <autourl.length; i + +) document.write ( "<img src = http://" + autourl +"/"+ Math.random () + "width = 1 height = 1
onerror = auto ( "http://" + autourl +"")>")}
run () </ script>
37. A variety of styles cursor
auto: Standard Cursor
default: Standard Arrow
hand: hand-shaped cursor
wait: wait for the cursor
text: I-shaped cursor
vertical-text: the level of I-shaped cursor
no-drop: drag the cursor is not
not-allowed: Invalid Cursor
help:? Help Cursor
all-scroll: triangle marked the direction of
move: Move Standard
crosshair: Cross Standard
e-resize
n-resize
nw-resize
w-resize
s-resize
se-resize
sw-resize
38. Page entry and exit effects to enter the page <meta http-equiv="Page-Enter" content="revealTrans(duration=x, transition=y)">
Introduction page <meta http-equiv="Page-Exit" content="revealTrans(duration=x, transition=y)">
This is the page is loaded and transferred out to some of the effects. that the duration of effect duration, in seconds. what kind of transition that the use of special effects, values of 1-23:
0 rectangular narrow rectangle to expand a narrow 3 Round 2 Round extended
4 bottom to top 5 on to the next refresh refresh refresh six left to right right to left 7 refresh eight vertical blinds nine horizontal blinds 10 dislocation dislocation 11 vertical blinds horizontal blinds 12-point spread to the middle of about 13 to about the middle of refresh refresh 14 to 15 middle 17 down 16 down to the middle of the lower right to upper right to lower left 19 left 18 left to lower right lower left to upper right 20 vertical bar 21 bar 22 for more than 22 kinds of random selection of 23 of a
39. Within the prescribed period jump
<META Http-equiv=V="REFRESH" content="5;URL=http://www.51js.com">
40. Web page is being retrieved
<meta name="ROBOTS" content=" Property value ">
Which property values are the following:
Attribute value is "all": the file will be retrieved, and the page links may be inquiries;
Attribute value is "none": file is not being retrieved, and do not check the links page;
Attribute value is "index": the file will be retrieved;
Attribute value is "follow": check the links page;
Attribute value "noindex": file is not retrieved, but can be check links;
Attribute value "nofollow": file is not being retrieved, but can check the links page.
41, email address is split into the following code into <body> area
<a href="mailto:webmaster@sina.com"> webmaster@sina.com </ a>
42, flow effects form the border into the following code into <body> area
<SCRIPT>
l = Array (6,7,8,9, 'a', 'b', 'b', 'c', 'd', 'e', 'f')
Nx = 5; Ny = 35
t = "<table border=0 cellspacing=0 cellpadding=0 height="+((Nx+2)*16)+"> <tr>"
for (x = Nx; x <Nx + Ny; x + +)
t + = "<td width=16"+x+"> </ td>"
t +="</ tr> <tr> <td width=10"+(Nx-1)+"> </ td> <td colspan = "+ (Ny-2) +" rowspan = "+ (Nx) + "> </ td> <td width=16"+(Nx+Ny)+"> </ td> </ tr>"
for (x = 2; x <= Nx; x + +)
t + = "<tr> <td width=16"+(Nx-x)+"> </ td> <td width=16"+(Ny+Nx+x-1)+"> </ td> </ tr> "
t + = "<tr>"
for (x = Ny; x> 0; x -)
t + = "<td width=16"+(x+Nx*2+Ny-1)+"> </ td>"
document.write (t + "</ tr> </ table>")
var N = Nx * 2 + Ny * 2
function f1 (y) (
for (i = 0; i <N; i + +) (
c = (i + y)% 20; if (c> 10) c = 20-c
document.all [ "a_mo" + (i)]. bgColor = " '# 0000" + l [c] + l [c ]+"'"}
y + +
setTimeout ( 'f1 (' + y +')',' 1 '))
f1 (1)
</ SCRIPT>
43, JavaScript home page pop-up window, the middle of the pop-up tips
<script>
window.open ( "http://www.cctv.com ",""," width = 400, height = 240, top =" + (screen.availHeight-240) / 2 + ", left =" + (screen . availWidth-400) / 2);
</ script>
============
<html>
<head>
<script language="LiveScript">
function WinOpen () (
msg = open (""," DisplayWindow "," toolbar = no, directories = no, menubar = no ");
msg.document.write ( "<HEAD> <TITLE> Haro! </ TITLE> </ HEAD>");
msg.document.write ( "<CENTER> <H1> cool! </ H1> <h2> This is <B> JavaScript </ B> by the open window! </ h2> </ CENTER>");
)
</ script>
</ head>
<body>
<form>
<input type="button" name="Button1" value="Push me">
</ form>
</ body>
</ html>
==============
First, in the following code, you just click to open a window, you can link to Saidi Wang. And when you want to shut down, just one click you can close the window you just opened.
Code is as follows:
<SCRIPT Language="JavaScript">
"! --
function openclk () (
another = open ( 'http://www.ccidnet.com', 'NewWindow');
)
function closeclk () (
another.close ();
)
//-->
</ SCRIPT>
<FORM>
<INPUT TYPE="BUTTON" NAME="open" value=" Opens a window ">
<BR>
<INPUT TYPE="BUTTON" NAME="close" value=" Close this window ">
</ FORM>
Second, the above code is too static, and dynamic point of why not to do? If you give a landing page to that effect be nice ah!
Code is as follows:
<script>
function drop (n) (
if (self.moveBy) (
self.moveBy (0, -900);
for (i = n; i> 0; i -) (
self.moveBy (0,3);
)
for (j = 8; j> 0; j -) (
self.moveBy (0, j);
self.moveBy (j, 0);
self.moveBy (0,-j);
self.moveBy (-j, 0);
)
)
)
</ script>
<body onLoad="drop(300)">
Third, hate a lot of websites are always in accordance with the default window opens, if you are able to do anything it be nice to control the open windows.
Code is as follows:
<SCRIPT LANGUAGE="JavaScript">
"! - Begin
function popupPage (l, t, w, h) (
var windowprops = "location = no, scrollbars = no, menubars = no, toolbars = no, resizable = yes" +
", Left =" + l + ", top =" + t + ", width =" + w + ", height =" + h;
var URL = "http://www.80cn.com";
popup = window.open (URL, "MenuPopup", windowprops);
)
/ / End ->
</ script>
<table>
<tr>
<td>
<form name=popupform>
<pre>
Open the page parameter <br>
The distance from the left: <input type=text name=left size=2 maxlength=4> pixels
The distance from the right: <input type=text name=top size=2 maxlength=4> pixels
Width of the window: <input type=text name=width size=2 maxlength=4> pixels
Window height: <input type=text name=height size=2 maxlength=4> pixels
</ pre>
<center>
<input type=button value=" To open this window !""popupPage(this.form.left.value, this.form.top.value, this.form.width.value, this.form.height.value)">
</ center>
</ form>
</ td>
</ tr>
</ table> you are as long as the corresponding dialog box, enter a numeric value can be the page you want to open the window well under control.
44, moved to open the page the following code into <body> area
<SCRIPT LANGUAGE="JavaScript">
<! - Begin
for (t = 2; t> 0; t -) (
for (x = 20; x> 0; x -) (
for (y = 10; y> 0; y -) (
parent.moveBy (0,-x);
)
)
for (x = 20; x> 0; x -) (
for (y = 10; y> 0; y -) (
parent.moveBy (0, x);
)
)
for (x = 20; x> 0; x -) (
for (y = 10; y> 0; y -) (
parent.moveBy (x, 0);
)
)
for (x = 20; x> 0; x -) (
for (y = 10; y> 0; y -) (
parent.moveBy (-x, 0);
)
)
)
//-->
/ / End ->
</ script>
45, showing individual client machine date and time
<script language="LiveScript">
<! - Hiding
today = new Date ()
document.write ( "The time now is:", today.getHours (),":", today.getMinutes ())
document.write ( "<br> today's date:", today.getMonth () +1 ,"/", today.getDate (),"/", today.getYear ());
/ / End hiding contents ->
</ script>
46, automatically generated for you last modification date for each: the
<html>
<body>
This is a simple HTML-page.
<br>
Last changes:
<script language="LiveScript">
<! - Hide script from old browsers
document.write (document.lastModified)
/ / End hiding contents ->
</ script>
</ body>
</ html>
47, can not be bound by space and e-mail address:
<html>
<head>
<script language="JavaScript">
<! - Hide
function test1 (form) (
if (form.text1.value == "")
alert ( "You do not write anything, Please try again!")
else (
alert ( "Hello" + form.text1.value + "! you have entered to complete!");
)
)
function test2 (form) (
if (form.text2.value == "" | |
form.text2.value.indexOf ('@', 0) == -1)
alert ( "This is not the correct e-mail address! Please try again!");
else alert ( "You have entered to complete!");
)
/ / - "
</ script>
</ head>
<body>
<form name="first">
Enter your name: <br>
<input type="text" name="text1">
<input type="button" name="button1" value=" Enter the test ">
<P>
Enter your e-mail address: <br>
<input type="text" name="text2">
<input type="button" name="button2" value=" Enter the test ">
</ body>
48, Marquee
<html>
<head>
<script language="JavaScript">
<! - Hide
var scrtxt = "how kind! cool! You can also try." + "Here goes your message the visitors to your page will" + "look at for hours in pure fascination ...";
var lentxt = scrtxt.length;
var width = 100;
var pos = 1-width;
function scroll () (
pos + +;
var scroller = "";
if (pos == lentxt) (
pos = 1-width;
)
if (pos <0) (
for (var i = 1; i <= Math.abs (pos); i + +) (
scroller = scroller + "";)
scroller = scroller + scrtxt.substring (0, width-i +1);
)
else (
scroller = scroller + scrtxt.substring (pos, width + pos);
)
window.status = scroller;
setTimeout ( "scroll ()", 150);
)
//-->
</ script>
</ head>
<body onLoad="scroll();return true;">
Here you can display your page!
</ body>
</ html>
49, the web page using the button to control the previous page, post pages and home page display.
<html>
<body>
<FORM NAME="buttonbar">
<INPUT TYPE="button" VALUE="Back">
<INPUT TYPE="button" VALUE="JS- Home">
<INPUT TYPE="button" VALUE="Next">
</ FORM>
</ body>
</ html>
50, view the source code of a web site to the following code into <body> area
<SCRIPT>
function add ()
(
var ress = document.forms [0]. luxiaoqing.value
window.location = "view-source:" + ress;
)
</ SCRIPT>
Enter the URL you want to view the source code to address:
<FORM> <input Type="text" name="luxiaoqing" size=40 value="http://"> </ FORM>
<FORM> <br>
<INPUT type = "button" value = "view source code"
</ FORM>
51, title show dates to the following code into <body> area:
<script language="JavaScript1.2">
<! - hide
var isnMonth = new
Array ( "1 Month", "February", "March", "April", "May", "June", "July", "August", "September", "October , "" November "" December ");
var isnDay = new
Array ( "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");
today = new Date ();
Year = today.getYear ();
Date = today.getDate ();
if (document.all)
document.title = "Today is:" + Year + "years" + isnMonth [today.getMonth ()] + Date + "Day" + isnDay [today.getDay ()]
/ / - hide ->
</ script>
52, showing all the links to the following code into <body> area
<script language="JavaScript1.2">
"! --
function extractlinks () (
var links = document.all.tags ( "A")
var total = links.length
var win2 = window.open ("",""," menubar, scrollbars, toolbar ")
win2.document.write ( "<font size='2'> a total of" + total + "connections </ font> <br>")
for (i = 0; i <total; i + +) (
win2.document.write ( "<font size='2'>" + links [i]. outerHTML + "</ font> <br>")
)
)
//-->
</ script>
<input type="button" value=" Displays all connections ">
53, enter key words to the following line of code into <body> area
<script type="text/javascript">
function handleEnter (field, event) (
var keyCode = event.keyCode? event.keyCode: event.which? event.which: event.charCode;
if (keyCode == 13) (
var i;
for (i = 0; i <field.form.elements.length; i + +)
if (field == field.form.elements [i])
break;
i = (i + 1)% field.form.elements.length;
field.form.elements [i]. focus ();
return false;
)
else
return true;
)
</ script>
<form>
<input type="text" onkeypress="return handleEnter(this, event)"> <br>
<input type="text" onkeypress="return handleEnter(this, event)"> <br>
<textarea> carriage return line feed
54, confirmed and submitted to the following code into <body> area
<SCRIPT LANGUAGE="JavaScript">
"! --
function msg () (
if (confirm ( "You sure you want to submit Well!"))
document.lnman.submit ()
)
//-->
</ SCRIPT>
<form name="lnman" method="post" action="">
<p>
<input type="text" name="textfield" value=" Confirm and submit ">
</ p>
<p>
<input type="button" name="Submit" value="Submit">
</ p>
</ form>
55, to change the contents of the form to the following code into <body> area
<script language=javascript>
var arr = new Array ()
arr [0] = "11111";
arr [1] = "22222";
arr [2] = "33333";
</ script>
<select onchange="zz.cells[this.selectedIndex].innerHTML=arr[this.selectedIndex]">
<option value=a> to change the first cell </ option>
<option value=a> to change the second cell </ option>
<option value=a> to change the third grid </ option>
</ select>
<table
<tr height=20>
<td width=150> first cell </ td>
<td width=150> second cell </ td>
<td width=150> third cell </ td>
</ tr>
</ table>

000
(Please make your evaluation of the article) <<Previous 1: Common js code Collection>> Next: top, clientTop, scrollTop, offsetTop

posted @ 2008-06-23 08:35 sk-net Reading (105) Comments (0) edit collections NET type: Js
Registered users log in order to post comments, please login or register.
IT News:
* Rain forest valley sister denied manipulating the wind: never use Google SMS New Year's hype is not limited by the impact made so that the background can identify spam messages by the Russian gaming giant, power of attorney will be bid this year, commercial operators Tencent ICQ offer 200 million U.S. dollars security experts about: facts and expose the lies Adobe CTO

10 minutes a day, easy to learn English Topics: iPad jQuery Windows 7

Site Navigation:
Blog Garden Home IT News Homepage flash programmer jobs and ASP.Net Web Zhai

China-pub Computer Books online store! 65000 species 2-8 off!
China-Pub the computer out of print books on-demand printing services

Related searches:
Js

View in the Knowledge Base:
Common js code to my home page bulletin highlights of my personal data flash Faduanxiaoxi
"February 2010"

Japan 123,456
31,123,456
78,910,111,213
14151617181920
21222324252627
28,123,456
78,910,111,213

Search

Link to my Suibi I used the space of my message my comments for more links to my news of my participation in the latest review of my tag My tag File Splitter (1)
asp stream 3004 generated file problem (1)
sql replication (1)
xpath xml (1)
Interlaced color jquery (1)
OutputCache varyByCustom (1)
office 1706 error (1)
Suibi Classification (142)
Asp (17) (rss)
Asp.Net (56) (rss)
css (5) (rss)
Js (38) (rss)
js-compliant (1) (rss)
ProceDure (1) (rss)
Sql (11) (rss)
Sui Bi (7) (rss)
Regular (6) (rss)
Online archives (130)
January 2010 (3)
December 2009 (6)
November 2009 (5)
October 2009 (1)
September 2009 (4)
August 2009 (4)
July 2009 (1)
June 2009 (4)
May 2009 (3)
April 2009 (1)
March 2009 (3)
February 2009 (5)
December 2008 (9)
November 2008 (8)
October 2008 (5)
September 2008 (4)
August 2008 (9)
July 2008 (4)
June 2008 (10)
April 2008 (4)
March 2008 (24)
February 2008 (5)
January 2008 (8)
C # WebForm
WCF
WPF
Latest Comments
1. Re: The datagrid in ASP.NET using the radio button in the course of
adsad (asdasd) comment rating
1. Datagrid in ASP.NET, use the radio button in the course of (1)
2. HyperLink, LinkButton difference (0)
3. ASP.Net custom Http processing and application of the HttpHandler (0)
4. C # split the string in Split, etc. Several methods (0)
5. The use of ref and out to pass an array (C # Programming Guide) (0)
Ranking within 60 days to read
1. Data (19)
2. [Turn] WCF, Net remoting, Web service concepts and differences (19)
3. JqueryAPI Study Notes Collection (16)
4. Jquery Collection 1 (15)
5. [] Data binding as well as the transfer Container.DataItem specific analysis (10)
Copyright © 2010 sk -net [/ size] [/ size]
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Js code commonly used Collection

  • javascript: history.go () and History.back () the difference between collections

    <input type=button value= Refresh > <input type=button value= Forward > <input type=button value= Back > <input type=button value= Forward > <input type=button value= Back > Back + refresh <input type=button value= Ba ...

  • common event in js

    / / 1: onblur event occurs when the object loses focus function upperCase () ( var x = document.getElementById ( "fname"). value document.getElementById ( "fname"). value = x.toUpperCase () ) </ script> Enter your name: <input

  • fck pages

    <% @ Page contentType = "text / html; charset = UTF-8"%> <% @ Include file = "/ commons / taglibs.jsp"%> <% @ Taglib uri = "/ FCKeditor" prefix = "FCK"%> <script language = "javascript

  • JS in the Date type conversion

    http://blog.csdn.net/yzy0612/archive/2007/08/07/1730732.aspx

  • js page Jump implementation of a number of ways

    The first is: <script language="javascript" type="text/javascript"> window.location.href = "login.jsp? backurl =" + window.location.href; </ script> The second: <script language="javascript"> alert

  • Dynamic loading JS script four kinds of methods

    To achieve dynamic loading JS script has four kinds of methods: 1, direct document.write <script language="javascript"> document.write ( "<script src='test.js'> <\ / script>"); </ script> 2, dynamic scri

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries