Links in a scrollable list box...

M

Mel

is it possible to have URL links inside a list box ? WITHOUT the use of
JavaScript?

thanks for your help
Mel
 
M

Michael Winter

is it possible to have URL links inside a list box ? WITHOUT the use of
JavaScript?

No. From the DTD[1]:

<!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->

The text in parenthesises (#PCDATA) declares the contents of the OPTION
element. PCDATA is just text.[2]

Mike


[1] Strict and Transitional are the same at this point.
[2] You can include entity references (&quot; for example), but no
elements (like <A> and <EM>). I don't have ISO-8879:1986, but what I just
said is what I've taken from a post of someone that does :)
 
D

David Dorward

Mel said:
is it possible to have URL links inside a list box ? WITHOUT the use of
JavaScript?

Why are you asking how to do something without JavaScript in a JavaScript
newsgroup?!

CSS:

ul {
height: 5em;
width: 90%;
border: solid 1px black;
overflow: auto;
}


HTML:

<ul>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
<li><a href="foo">Foo</a></li>
</ul>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top