I have two questions:
- how do I pass the parameter in this href? id is a previously declared variable with value. I tried as written below but the id is not read
- Also, how can I read this id that I pass in the new html page (detailsbook)?
document.getElementById("book").innerHTML = "<a href='detailsbook.html?id=+id'>"+ myArray.Item.title + "</a>";
Thank you all.