Im using ASP.NET and trying to load some html in an IFrame. I've got a string containing html source and i want to pass it to the iframe. Does anyone know how to do that? I tried iframe.innerhtml to no avail. Thanks.
throw this in a function inside your external JS file. document.getElementById("YourFrameID").src = "http://google.com.au/search?q=" + searchTerms; This way you can change your Location of the iFrame on the fly.
The problem is that i dont want to point the iframe to a URL but rather load it with some html like: string _html = "<html><body>hello world</body></html"; Any ideas?
Here's a link to handle the data inside an iframe: http://developer.apple.com/internet/webcontent/iframe.html