my question is:

it is a video game website.

it has a main page, that has a frameset. one frame is the menu bar. the other is the content.

i have got a menu at the top of the page.

the menu has got a few links (options/buttons) e.g. pc, wii, ps3, xbox.

i want the user to press the button on the menu bar (e.g. pc) and in the contents the appropiate page will appear (the page that i have e.g. pc page).

how do i do that? how do i direct a button to open another page (in the content), while using frames in teh same context.

please html solution only

6 Years
Discussion Span
Last Post by Arkinder
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web with Frames</title>

<frameset rows="46,*" cols="*" framespacing="0" frameborder="no" border="0">
  <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
  <frame src="content.html" name="contentFrame" id="contentFrame" />

Download this FILES (Example Frames)


Another FILE is not correct... The Correct file is:

For open another page (in the content), while using frames in teh same context.

You should write on page:
Example: Wii Page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Wii Page</title><style type="text/css">
.style2 {font-size: 100px}

<div align="center">
  <p><strong><span class="style2">WII Site</span></strong></p>
  <p><a href="http://www.google.com" target="_blank">LINK TO ANOTHER PAGE OUT</a></p>
Votes + Comments
thank you, it works now

i got it. it works now

i use <a href="filename.html" target="content"></a>

it will open me tha page at contents.

Thank you


The target attribute is becoming/is deprecated, and frames are just a bad idea. This was written two years ago, but remains accurate today.

The best way to accomplish this is through a scripting language such as JavaScript, or as VulcanDesign said, jQuery - a JavaScript library that takes away the long coding for animated web effects.

Regards, Arkinder

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.