javascript - How can I show url of current page inside a text input for user to copy? -
i'm trying achieve similar youtube has when press share button can see url of current page inside sort of text input , copy etc. how can done jquery?
i think window.location.href suffice.
edit: other have said:
$('#inputid').val(window.location);
kudos other guys got right before did.
Comments
Post a Comment