In my current window, I need to display the current URL(document.URL
) as a link. If I click that link, it will open the same page in a new window.
You can do something like this.. Maybe you can improvise on this...
<a href="#" id="link" target="_blank">Link</a>
<script type="text/javascript">
window.onload = function(){
document.getElementById("link").href = window.location.toString();
}
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With