Tutorialsplane

How To show image link url in current page on click in facebook style jquery | Facebook style image url

 

To show image link url in current page on button click in jquery

Use the followning code :

<script type=’text/javascript’>

function passUrl()

{

var title =’New Image Link’;

var Url = “https://www.facebook.com/photo.php?fbid=416553375086196&set=a.123920751016128.25171.100001946114572&type=1&theater”;

window.history.pushState(‘obj’, title, Url);
return false;

}

</script>

The below code will produce the following type of image url which is currently clicked. Get your Facebook style image url now!

Facebook style pass image link url in current url