Skip to content Skip to sidebar Skip to footer

Open Pop Up After Clicking Bookmark Link

I am working on a short application. In which I have followiing things. move a link something from my page to Bookmark Toolbar of Browser- Done. After clicking on the bookmark lin

Solution 1:

You can add javascript to URLs like so:

<ahref="javascript:alert('hello');">Bookmarklet</a>

Note that I have prepended the URL with javascript: to indicate the browser that it should execute the URL as javascript.

So for a pop it would be something like:

<ahref="javascript:window.open('http://www.example.org');">Bookmarklet</a>

Here is a jsFiddle with the code above for you to test.

For more information about bookmarklets you might like the following article: http://betterexplained.com/articles/how-to-make-a-bookmarklet-for-your-web-application/

Post a Comment for "Open Pop Up After Clicking Bookmark Link"