ULOZENIE COOKIE

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

055
p055.html / p055.zip
Ulozi cookie
557b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P055 </title> <SCRIPT LANGUAGE="JavaScript"> <!-- function setCookie(form) { cookie_name = "bevo"; { document.cookie=cookie_name+"="+form.inputbox1.value+"; expires=Tuesday, 01-Apr-2000 08:00:00 GMT; path=/"; } window.alert(form.inputbox1.value) } // --> </SCRIPT> </head> <BODY> <FORM name=cookie-setter> <INPUT TYPE="text" NAME="inputbox1" VALUE=""><br> <INPUT TYPE="button" NAME="button" Value="Nastav!" onClick="setCookie(this.form)"> </form> </body> </html>
[ Navrat / BACK ]