Monday, May 25, 2009

How To Generate IFrame At Runtime Using Javascript


<script type="text/javascript">
var el = document.createElement("iframe");
el.setAttribute('id', 'ifrm');
el.setAttribute('width', '100%');
document.body.appendChild(el);
el.setAttribute('src', 'http://www.yahoo.com');
script>

No comments:

ShareThis

Welcome

Welcome to Rajesh Prajapati, asp.net blog.
Here you can find some useful code and information about asp.net., c#, VB.net, SQL Server, Web Service, Web Designing etc