I solved problem by using sessionStorage. I add an id for the <a> , store it into sessionStorage, and then get it out in another div . It works fine
However. I'm having another problem
In <div id = "deadlineList"> , I have a list of item, tap on each item will open the <div id = "deadlineDetail"> which show the detail of item . After I change detail, and save, I use window.location.hash = "#deadlineList" to go back. However, the list item of the div is not updated with the info I changed except I make a F5 refresh. Is there anyway to make it redirect back and also refresh the content ?