html:
<input type="hidden" id="tableName" value="${id}">javascript:var id = document.getElementById('tableName').value;