How do I access the meta tags and the title tag dynamicly?

Discussion in 'JavaScript' started by Imozeb, Apr 11, 2010.

  1. #1
    How do I access the meta tags and the title tag dynamicly?

    Thanks.

    ~imozeb
     
    Imozeb, Apr 11, 2010 IP
  2. JREAM

    JREAM Member

    Messages:
    160
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #2
    In JQuery I would fetch it by doing:

    $meta = $('meta').val();
    $title = $('title').html();
    alert ($title);

    Regards,
    Jesse
     
    JREAM, Apr 11, 2010 IP
  3. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #3
    yeah, you need jquery to access anything these days. vanilla javascript is deprecated / defunct now... </sarcasm>
     
    dimitar christoff, Apr 12, 2010 IP