Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tabbed web pages using HTML???

Status
Not open for further replies.

sribu

Programmer
Mar 8, 2003
17
US
Hi,

How can we create tabbed web pages using html and javascript? And also how do we craete a list box in html?

Can anyone help me out???

thanks
 
use attribute tabindex then number your order (ie tabindex="1")

<select>
<option selected>none selected
<option>Option 1
<option>Option 2
</select>
 
Tabbed web pages? You mean like the Forum/Keyword Search/FAQs/Links tabs on this page? The easiest way is to use graphics (or CSS-formatted text) to look like tabs along the top of your page, with each one linking to a seperate document with that tab uppermost. There are (no doubt) slicker ways to do it with DHTML, but they're more difficult to get working in all browsers.

To put a list box in an HTML form, you need to set the
Code:
size
attribute of a <select>. Somewhat confusingly,
Code:
size
, which controls the width of <input type=text> controls, contains the height of <select> controls. For example

Code:
<select name=&quot;nation&quot; size=&quot;3&quot;>
  <option>England</option>
  <option>France</option>
  <option>Ireland</option>
  <option>Italy</option>
  <option>Scotland</option>
  <option>Wales</option>
</select>

will give you a 3-high list box. -- Chris Hunt
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top