1
I am trying to pass the id variable of the 'a. hmtl' page to 'b. html'. The contents of this var come from the 'code.Gs' page as shown below:
Gs code.
function dados(){
var id = 1;
return id;
}
Then I pull this variable and show it in the code a.html:
a. html
<?
var id = dados();
?>
<h1><?= id ?></h1>
<a href="b.html">Ir para B</a>
By clicking on the 'Go to B' link, the system directs the user to the b.html. page. Note: With some searches, I saw that there is a way to pass the variable via cache, but when I tried to use in my code, it didn’t work.
Someone can help me?
Avoid putting greetings. Be formal and impersonal this is a technical site whose audience is technical and problems and solutions should reach the technical scope.
– Augusto Vasques