J
J
Jasee Cambatch2017-12-14 14:09:05
JavaScript
Jasee Cambatch, 2017-12-14 14:09:05

How to make sure that the desired page id is saved in cookies?

Tell me how to make it so that the page id is recorded in the cookie, and not the id that is specified in javascript

function add2note()
{
  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 - here is the id itself, what to write so that it takes id from this field ( prntscr.com/hnd2xt prntscr.com/hnd37b)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question