adspace


Can I load css style sheets dynamically at runtime?

Answer Posted / Giridhari Kumar Jha

Yes, you can load CSS stylesheets dynamically at runtime in a web browser using the JavaScript Document.createElement('link') method. Here's an example:
var link = document.createElement('link');
link.rel = 'stylesheet';
link.href = 'styles.css';
document.head.appendChild(link);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category