Assume a text file including simple bibtex entries like
@incollection{einstein2013einstein,
title={Einstein on politics},
author={Einstein, Albert},
booktitle={Einstein on Politics},
year={2013},
publisher={Princeton University Press}
}
@book{barnett2005universe,
title={The Universe and Dr. Einstein},
author={Barnett, Lincoln and Einstein, Albert},
year={2005},
publisher={Courier Corporation}
}
In an HTML file, I have a word "Reference" as a link. Once it is clicked, the content of entry associated with a key, e.g., einstein2013einstein
, has to be shown in a box.
1- How can I access the entry corresponding to a key in the target HTML file?
2- I know how to make a box hovering, but as the user may want copy the bibtex entry of the "Reference" Link, the box should remain where it is after clicking on "Reference", until the user clicks anywhere on the page except the box after which the box needs to disappear. How can I achieve that?
Thanks