Salin ke clipboard javascript dom
navigator.clipboard.writeText('Text');
navigator.clipboard.writeText('Text');
var $temp = $("<input>");
var $url = $(location).attr('href');
$('.clipboard').on('click', function() {
$("body").append($temp);
$temp.val($url).select();
document.execCommand("copy");
$temp.remove();
$("p").text("URL copied!");
})