Hi,
I tried creating cookies online..the same code is not working when I did in a notepad..What could be the issue?
please verify the code below!!!
Code HTML - [expand] |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <!DOCTYPE html>
<html>
<head>
<script>
function view(){
document.cookie="username=hello";
document.write(document.cookie);
}
</script></head>
<body">
<button type="button" onclick="view()">view</button>
</body></html> |
Last edited by a moderator: