Answers for "create iframe and set content"

1

iframe with html string

<iframe srcdoc="<html><body>Hello, <b>world</b>.</body></html>"></iframe>
Posted by: Guest on August-16-2020
0

iframe set html content c#

protected void btnChange_Click(object sender, EventArgs e)
{
    myIframe.Attributes["srcdoc"] = "<h1>Contents Changed</h1>";
}
Posted by: Guest on May-26-2020

Browse Popular Code Answers by Language