hello friends
i am building my first website,i want that the other pages should open in the home page itself,i mean to say that when i click on the menu only the content of the home page change not the other page should open,many website has thi kind of feature....
please any1 help...!!

Have a template set up (easy to make), that's an easy way to go!

You can use FRAMES like this website, designed way back in 1997...
http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm

Unfortunately when I attempted to bookmark the frames tutorial, all I got was their frameset URL, which displays the homepage by default. This is one of the drawbacks of frames. There are ways around this particular problem, if your visitor has JavaScript enabled, which search engines usually don't. And then there's history navigation, but I won't go down that road. Besides, I've forgotten which road it was.

Anyway, the page served as useful tutorial when I was getting to grips with HTML 3.2, so here's a direct link for old times sake...
http://vzone.virgin.net/sizzling.jalfrezi/frames/fframes.htm

A simpler alternative and slightly more moden approach is to use a IFRAME tag, e.g.

<iframe src="http://www.example.com/" width="200" height="200" name="myframe"></iframe>

These also suffer the same drawbacks mentioned earlier.

Normally when you click on a link, the current page will get updated. If you want the contents of a frame to be updated there are a couple of things you need to do; give the target frame a name, and set it as the link target.

In the code snippet above I named the frame "myframe". Setting the target attribute of an anchor element to "myframe" would cause a click to update that frame, e.g.

<a href="http://example.com/" target="myframe">Visit example.com!</a>

It's possible to set a default target for all links on a page through the BASE tag in an HTML document's header.

Frames aren't search engine friendly. If traffic is important to your site, frames are usually best avoided unless you know exactly what you're doing ;-)

Build a common basic page with your menu, header and footer in place, save it, then use that as the starting point for each new page, just altering the content and saving under a new name. You are imagining that many sites have a new page open within the home page, they are just being consistent in their page design, repeating the same header and footer and menu on every page.

well, indeed frames were thé way to go to do something like this, years ago, but it could bring up some issues when saving a link to a page in your favorites.

Well your solution lies playing with header and footer issues..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.