From my Index.html page, I take parameters to my Trabajo.html page through the following link:
https://script.google.com/macros/s/************/exec?page=Trabajos&item=23
but I don't know how to receive the variable "item" on my page "Trabajo.html"
Codigo.html
function getScriptUrl() {
var url = ScriptApp.getService().getUrl();
return url;
}
Index.Html
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons.css">
<html>
<head>
<base target="_top">
</head>
<body>
<?var url = getScriptUrl();?><a href='<?=url?>?page=Trabajos&item=23' target="_blank"> <input type='button' name='button' value='Trabajos.html'></a>
</body>
</html>
Trabajos.html
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons.css">
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<br><br>
//Here I want to show the value of the item, and also in a <script>
<input type='text' value='<?=item?>' >
<br><br>
<?var url = getScriptUrl();?><a href='<?=url?>?page=Index'> <input type='button' name='button' value='Index.html'></a>
</body>
</html>
I don't know how to receive the item variable, how could I do it if my code is like that?