Search code examples
javascripthtmlhead

Is it possible to modify the head?


Is it possible to modify inside the <head> using JavaScript after the page is loaded? For example, if I add elements for external style sheets, will that be effective? Or if I change the <title>, will that be reflected? If not, are there ways to do this?


Solution

  • Absolutely.

    Although, changing the title is better done with document.title = "new title here";