<script>
function MyClass()
{}
MyClass.prototype.Display = function()
{
document.write("<iframe name=ccc width=300 height=300></iframe>");
}MyClass.prototype.d = function()
{
window.frames["ccc"].document.open();
window.frames["ccc"].document.write("<font color=red>ddddddddd</font>");
window.frames["ccc"].document.close();
}var my = new MyClass();
my.Display();
my.d();
</script>