4
I am developing a web app, where each page has an option to filter, for example, one for brands, then the models of these brands, after, the cars and then the years of the car chosen.
I would like to know a way to communicate these pages by passing the options chosen on each page without using PHP, only HTML and Javascript.
Opening another window to you, for example using the code below:
function selectCarro(carro){
window.marca = carro;
var b = window.open("modelos.html");
$(b).load(function(){
b.marca = marca;
b.atualiza();
return;
});
}
The problem is if you open the page in the same window, for example with window.location
or with open using _self
.
Some solution??
Search for Session and Cookies in Javascript that can help you a lot in this task.
– Rodrigo Santos
Thank you, I’ll look into it and see if I can find the solution.
– Erasmo Neto