Is There an Alternative Method to Mimic the Behavior of an Anchor Link/Target Pseudo-Class?
问题 Original Post: Is it possible for onclick within an <a> tag to call an anchor link, just as href does? In the snippet below, I have <a href="#view"> applied to all images, and <a id="close-customlightbox" class="lb-animate" href="#!"> as a return URL once each image is closed from lightbox view. Ideally, I would rather have the anchors prompted where they would not create any sort of extension to the page's URL. So after clicking <a href="#view"> , it adds on to the page's URL like so: http:/