| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.o
rg/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 2 | |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> | |
| 4 <head> | |
| 5 <title></title> | |
| 6 <script type="text/javascript"> | |
| 7 function setcolor(what){ | |
| 8 document.body.style.backgroundColor=what | |
| 9 document.cookie="bgcolor="+what | |
| 10 } | |
| 11 | |
| 12 function popuponclick() { | |
| 13 my_window = window.open("sessionCookieDest.html", "cookiedestwindow", "s
tatus=1,width=350,height=150"); | |
| 14 } | |
| 15 </script> | |
| 16 </head> | |
| 17 <body> | |
| 18 <input id="setcolorbutton" type="button" value="Set Background Color" onclic
k="setcolor('#80FFFF')"/> | |
| 19 <input id="openwindowbutton" type="button" value="Open New Window" onclick="
popuponclick()"/> | |
| 20 </body> | |
| 21 </html> | |
| OLD | NEW |