javascriptshort-url

Javascript: How do I add a top bar to a short url?


I've been trying to understand how is possible to develop a bit.ly style URL shortener which also adds a bar to the website.

For example: http://om.ly/BSdZu

There's a group on twitter that shares all their URLs starting with "om.ly" and they have a top bar in each of the URLs they share.

How is that done? I imagine is with JavaScript but how? Also, is there any service you know that does that so I can understand how?


Solution

  • you can do this in 2 ways (at least):