Can I load css style sheets dynamically at runtime?



Can I load css style sheets dynamically at runtime?..

Answer / 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

More Multimedia General Interview Questions

How do you add event listeners in mxml components. Now as3 components?

1 Answers  


What are the various class of devices in DLNA?

1 Answers   Sony,


Explain the role of each type of server required in a multimedia system and the type of storage media that should be used for it.

0 Answers  


What are the methods called when a ui component is initialized?

1 Answers  


What is the difference between httpservice and data service?

1 Answers  


how do your affect the design? would different decisions on network technologies and object server technologies result in a different solution?

1 Answers  


What network considerations would you contemplate in designing an enterprise-wide multimedia system which supports fully distributed integrated messaging, sharing of corporate multimedia information databases, and custom business process applications?

0 Answers  


Write a C language program to perform CCITT group 3 compression. If possible, scan some images and use your program to compress the images. What kind of compression did you achieve?

1 Answers  


How does AI impact multimedia content creation?

1 Answers  


Why do strongly typed objects appear as “undefined” in the netconnection debugger?

1 Answers  


What are the common multimedia file formats?

1 Answers  


. How do you optimize multimedia content for the web?

1 Answers  


Categories