Advertisement

How to Inject Custom HTML and CSS into an iframe

by
Student iconAre you a student? Get a yearly Tuts+ subscription for $45 →

Ever been to a site like JSBin, where you can write HTML, CSS, and JavaScript, and then see the results in a panel to the right? An iframe is how we can accomplish this task. In today's quick tip, I'll show you how to inject HTML and CSS into an iframe.

Select 720p for optimal viewing.
Advertisement