Hi all,
I have the following Javascript code to write a code to the page using InnerHTML. But instead of writing the code, it shows the content of the iframe. How can I make the code write straight text of the HTML code
Thanks
Code:<script type="text/javascript"> function changeContent(cont1){ var x=document.getElementById('myTable').rows var y=x[1].cells y[0].innerHTML="<iframe src='/poll/poll.asp?pollID=" + cont1 + "' frameborder=0 scrolling=no name=main id=main height=150 width=230></iframe>" } </script>


Reply With Quote
Bookmarks