Created
November 26, 2013 02:24
-
-
Save gh640/7652562 to your computer and use it in GitHub Desktop.
bookmarklet to get a link to the page and prompt it. format: <a href="url_of_the_page">title_of_the_page</a>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
/* get the url */ | |
var url = location.href; | |
/* get the page title */ | |
var title = document.title; | |
/* link_tag */ | |
var link_tag = '<a href="' + url + '">' + title + '</a>'; | |
window.prompt("link to this page:", link_tag); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment