Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140390

Get current page URL in href

$
0
0

Currently working on a share button for Vk however having a dynamic site, I need the button to automatically use the correct page URL.

This is the code snippet they offer for a static site, how could I adjust this for multiple pages ?

<a href="http://vk.com/share.php?url=http://example.com" target="_blank">

Viewing all articles
Browse latest Browse all 140390

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>