|
| |
精品推荐 |
 |
|
| |
|
|
|
|
javascript读写cookie的一个小demo
|
日期:2007年7月6日 作者: 查看:[大字体
中字体 小字体]
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>test Cookie</title> <link rel="Stylesheet" type="text/css" href="../css/mainStyleSheet.css" /> </head> <body> <h1 align="center">Cookie读写测试</h1> <hr /> <h2>write cookie:</h2> <form id="login" name="login"> <table width="100%"> <tr> <td align="right">User name:</td> <td><input type="text" id="username" /></td> </tr> <tr> <td align="right">Password:</td> <td><input type="password" id="password" /></td> </tr> <tr><td colspan="2" align="center"> <input type="submit" id="ok" value="writer" onclick="javascript:writecookie(login)" /> </td></tr> </table> </form> <script language="javascript" type="text/javascript"> <!-- function writecookie(fm) { var cookiename = fm.username.value; var cookievalue = fm.password.value;
上一篇:javascript里的条件判断
下一篇:用 Ajax 和 RSS 攒个首页新闻
|
| 相关文章: |
|
|
|
| 相关软件: |
|
|
|
|