470,591 Members | 2,283 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

CSS problem while linking to js

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,
Jul 20 '05 #1
1 1103
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=

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by rama | last post: by
5 posts views Thread by Arnab Nandi | last post: by
20 posts views Thread by Steven T. Hatton | last post: by
6 posts views Thread by Rudy Ray Moore | last post: by
reply views Thread by dotyet | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.