Search code examples
jqueryloadhead

Load head of a page in pagehead


Is it posible to load the head of a page in the head of the current page with jQuery? I tried this, but it doesn't seem to work.

  jQuery(function() {
    var page = http://www.mysite.com/mypage;
    jQuery('head').load(page +' head');
  });

Solution

  • Navigate through a site mean that you refresh the pages and you will not be able to play a sound without gliches.

    Sound on a side is a bad idea, but if you must ... make a frame for the div with the player and a frame for the pages content. It's not a good practice but it will work and it simple.