CSS problem while linking to js

A

Ang Talunin

Hey,

I've got this code:

<html>
<head>
<style>
a{cursor:hand;text-decoration:none;font-size=10pt;font-family:Verdana;}
a:hover{cursor:hand;text-decoration:underline;}
</style>
</head>
<body>
<a href="" onClick=openR()>link1</a><br>
<a onClick=openR()>link2</a><br>
</body>
</html>

And I'm wondering why on the first link the css is working fine and on the
second one fails.
Anyone know's?

thnx,
 
E

Evertjan.

Ang Talunin wrote on 08 feb 2004 in comp.lang.javascript:
I've got this code:

<html>
<head>
<style>
a{cursor:hand;text-decoration:none;font-size=10pt;font-family:Verdana;}
a:hover{cursor:hand;text-decoration:underline;}
</style>
</head>
<body>
<a href="" onClick=openR()>link1</a><br>
<a onClick=openR()>link2</a><br>
</body>
</html>

And I'm wondering why on the first link the css is working fine and on
the second one fails.
Anyone know's?

an <a is only an anchor with(!) a href=
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top