Kaji Posted January 17, 2006 Share Posted January 17, 2006 Is there a way to place content in an iframe without using a second page? Like defining a content attribute or something? I'm not sure if this was an HTML thing, but I looked in HTML reference, and there's nothing there for it. I even tried putting it between the two iframe tags. The reason for this is that I use blogger, and I want to put the posts and comments inside an iframe and have them scroll in place of the whole page. If this is even possible I'd like to know. Thanks in advance, -Kaji Link to comment Share on other sites More sharing options...
aspnetguy Posted January 18, 2006 Share Posted January 18, 2006 something along these lines should work var theFrame = document.getElementById('iframeId');theFrame.open('text/html');theFrame.write('your html goes here')theFrame.close(); Link to comment Share on other sites More sharing options...
smiles Posted January 20, 2006 Share Posted January 20, 2006 I'm not sure if this was an HTML thing, but I looked in HTML reference, and there's nothing there for it. <{POST_SNAPBACK}> <iframe src="" name= "showframe" ></iframe><a href = " http://www.w3schools.com " target="showframe">Last Page></a> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now