the_oliver Posted May 18, 2007 Share Posted May 18, 2007 Hello. How can i have a link that will open in an iframe. (So if i click a link in a submenu it will load new content into the iframe). Some think similer to adding <a href="" target="_iframe"> Thanks! Quote Link to comment Share on other sites More sharing options...
the_oliver Posted May 18, 2007 Author Share Posted May 18, 2007 Also how can i make the height of the frame auto fit to contents? Thanks! Quote Link to comment Share on other sites More sharing options...
tushar707 Posted May 21, 2007 Share Posted May 21, 2007 I have solved both problems just today for my website. I will help you out. Okay as far as the loading content into iframe. here it is. <iframe src="thing.html" name="content"></iframe> The name is the important part. now in the link do this: <a href="homepage.html" target="content"> the target and name should be the same. to auto adjust the height. go here: http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm (Id and name are two different commands for iframe) I used this to solve the auto adjust the height, and it works great with almost every browser. IE, Firefox have given me no problems. Quote Link to comment Share on other sites More sharing options...
the_oliver Posted May 21, 2007 Author Share Posted May 21, 2007 Fantastic! Many Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.