I want to pass javascript object/ variable from page to another. so that i can use data for some fields, i want this values to be hidden and not visible while i my passing value from one page to another
I have already seen many examples of pass via http parameters, i dont want that and also session variables manage on server side, cause nothing has to be manage on sever side for that page.
i want to pass value as a hidden field or value to next page. how to pass it to new page when i open new page via
window.location="website/nextpage.jsp";
Also a note, i am beginner, so please sorry if the question seems to vague.
Assuming you do not want to use session variables, cookies or local storage:
You can not “hide” a parameter so that your website user will not be able to see it.
If you submit data via a POST request – you can use hidden form elements.
If you use window.location – you will have to do it with a GET request