Devacron.com

Get the title of a referral url with Javascript


If there is a need to retrieve the title by just passing the url to one of your applications this can be done with this tiny jQuery plugin I wrote. It uses yql to bypass the cors restriction and its really easy to use.

Requirements

*jQuery library

Installation

*Include getTitle.js in your html

Usage

*$(‘#box’).getTitle(‘www.google.com’); It fills element box with the google’s title

Todo

*At the moment is working only synchronously, which is lame 🙁

DEMO

Get it from here

Exit mobile version