[thelist] javascript:// :is it necessary?

Brian King BKing at Impact-Technologies.com
Thu Jun 28 10:33:04 CDT 2001


What is wrong with using the following instead of JavaScript for rollovers?
Does this not work on most browsers?

<a href="products.htm" target="active" onmouseover="images['imagename].src="
Button2.jpg"" onmouseout="images['imagename'].src="Button1.jpg"">
<img name="imagename" src="Button1.jpg" border="0" width="32" height="32">
</a>

Brian W. King

 -----Original Message-----
From: 	thelist-admin at lists.evolt.org [mailto:thelist-admin at lists.evolt.org]
On Behalf Of Ornstein, Ian
Sent:	Thursday, June 28, 2001 11:14 AM
To:	'thelist at lists.evolt.org'
Subject:	RE: [thelist] javascript://

I thought we had all agreed to use HREF="JavaScript:void(0);"

Ian Ornstein - Programmer and Web Developer
IBM Global Services, Global AMS Delivery
(704) 509-8022


-----Original Message-----
From: Ron_Senykoff/BEA at beaerospace.com
[mailto:Ron_Senykoff/BEA at beaerospace.com]
Sent: Wednesday, June 27, 2001 5:23 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] javascript://



<snip>
That was my guess as well.  In situations like this I typically will use
HREF="#" OnClick="whatever();"
</snip>

The href="#" can cause problems... I remember encountering it a while back
but can't remember why other than I had trouble with Netscape DOM vs IE.
I solved it (with help from MonkeyJunkies) by doing
<a href="JavaScript:submit()">Submit</a>

-Ron S.


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list