By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,632 Members | 1,499 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,632 IT Pros & Developers. It's quick & easy.

Should I use Divs or an iframe?

P: 1
I'll get to the meat and potatoes. I'm building a resume page using divs, and I want to refrain from using iframes.

Is there a way that I can load new information into a div element with the click of a link on my page?

If this is possible, do I need to use Javascript or is there some XHTML tag I can use? I tried adding a target element to the link, but I don't know how to tell the browser to only load into the div.

If it is not possible, I'm assuming I will have to use an iframe - is an iframe element considered a tacky part of modern design (been out of the web design game, I remember using iframes and don't really know if they've remained useful elements or not :P)?

thanks in advance! feel free to just link me to a w3 page if you don't feel like giving a long answer. it's entirely possible I've missed something in the tutorials..
Mar 14 '08 #1
Share this Question
Share on Google+
2 Replies


drhowarddrfine
Expert 5K+
P: 7,435
The problem with frames is they aren't easy to bookmark and styling can be a pain, as well as something else I'm to tired to think of right now. To load what you want in a div would require javascript.
Mar 14 '08 #2

just a feeling
P: 87
I don't use frames at all. As much as I like some of the features they offer, there is still a number of disadvantages. For more info, google for " Frames disadvantages".
Is there a way that I can load new information into a div element with the click of a link on my page?
As pointed out by drhowarddrfine, It requires javascript, but I believe that CSS PLAY can do that too.

Best Regards,
Mar 14 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.