[thelist] javascript/fer why?
Lindsay Evans
lindsay at redsquare.com.au
Wed Feb 20 20:48:01 CST 2002
> <a href="digitalio1.htm"
> onclick="subWin(this.href, 500, 375);
> return false;"
> >your image and don't forget the alt text</a>
>
> now your maintenance is absolute minimum.
... and if you put the "return false;" as the last line of your subWin
function:
function subWin(...){
...
return false;
}
then you only have to code this:
<a href="digitalio1.htm"
onclick="return subWin(this.href, 500, 375);"
>your image and don't forget the alt text</a>
saving you 5 bytes each time you call the function :op
--
Lindsay Evans (currently optimising a 200k Flash application).
Developer,
Red Square Productions.
[p] 8596.4000
[f] 8596.4001
[w] www.redsquare.com.au
More information about the thelist
mailing list