files/en-us/web/api/document/enablestylesheetsforset/index.md
{{APIRef("DOM")}}{{deprecated_header}}{{Non-standard_header}}
Enables the style sheets matching the specified name in the current style sheet set, and disables all other style sheets (except those without a title, which are always enabled).
enableStyleSheetsForSet(name)
name
title attribute).None ({{jsxref("undefined")}}).
null name has no effect; if you
want to disable all alternate and preferred style sheets, you must
pass "", the empty string.document.enableStyleSheetsForSet("Some style sheet set name");
Not part of any specification.
{{Compat}}