How to make cookies in the persisted id of the page?

Tell me how to make cookies in the recorded ID of the page instead of the ID which is specified in javasript'e
add2note function()
 function str_replace(search, replace, subject) { return subject.split(search).join(replace);}
var button = document.getElementById('addnotepage');
var Link2Note = document.getElementById('Link2Note');
var count_note_message = 0;
var id = 1001000;
var fid = 2;
value = fid+"i"+id+"s";
var cookies = getCookie("BoardNote");
if (cookies == undefined) cookies = "";

var id = 1001000 - that he id to register that he was taken id of this field(
June 10th 19 at 15:16
0 answer

Find more questions by tags HTTP CookiesJavaScript