EDIT: It looks like I misunderstood your question. If you want to get the title of another page, not the currently loaded page, you could do some cross-domain AJAX trickery, but it's not generally a good idea. I'd just grab the page title server side (in whatever you are using to generate the page [php, asp, etc]) and output it.

Right okay now I get this. Basically I am looking for something like the famous bookmark sites use. For example delicious.com gives you the title of that page... Does that makes sense?
–
jQuerybeastNov 9 '11 at 1:49

Yes. If you need to show the title as the user adds before reloading, you'll need to use AJAX with a proxy. Otherwise, you should look up the title when you add a bookmark and store it in the DB.
–
SLaksNov 9 '11 at 2:07

Unless the URL's href is on the domain of the current document, using JavaScript to try to get the title of the target document would require cross-domain scripting which is not generally allowed (using traditional methods) by browsers. Unless you're real fancy with proxies (not entirely sure how that is done), you'll need a server-side language to load the document first.