A couple of points:
When assigning a function to an event, don't use the parentheses, otherwise you'll be assigning the result of the function call rather than the function:
[code=javascript]window.onload = valbeta;[/code]
In the onclick function, use 'this' (without quotes) to refer to the current link.
When assigning a function to an event, don't use the parentheses, otherwise you'll be assigning the result of the function call rather than the function:
[code=javascript]window.onload = valbeta;[/code]
In the onclick function, use 'this' (without quotes) to refer to the current link.
Comment