KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones

Best books about Javasript

Javascript get cookie

What is Cookie? It is explained in this link. Mouse over the following table to see the cookie we set.

Item Price




How to do get cookies? Copy the following scripts to <head></head> section.


Then copy the following code to your page. It will pullout the cookie to the table column when you mouse over the table.

<script language="javascript">
function getmycookie()
document.getElementById('item').childNodes[0].nodeValue =getCookieValue("item");
document.getElementById('price').childNodes[0].nodeValue =getCookieValue("price");
return true;
<table width="300" border="1" onMouseOver="return getmycookie()">
<tr align="center" bgcolor="#999999">
<td><span class="style3">Item</span></td>
<td><span class="style3">Price</span></td>
<tr align="center">
<td><p id="item">&nbsp;</p></td>
<td><p id="price">&nbsp;</p></td>


Click here to see how to set cookie.




Best books about ASP & ASP.Net from Amazon
JavaScript Bible, Fifth Edition (Paperback) JavaScript & DHTML Cookbook (Paperback) JavaScript: The Definitive Guide (Paperback) Beginning JavaScript Second Edition (Paperback) JavaScript: The Complete Reference, Second Edition (Paperback)


Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © All rights reserved(new). Privacy|Copyright
designed by

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer