javascript+setting anchor href

i've tried every thing but this doesnt work

<aonclick="javascript:changeLang(this)" >

function changeLang(obj)

{

obj.href="changeLang.jsp?lang=2";

}

in this article... http://www.devx.com/tips/Tip/5498.. . some one tells to use

href="javascript:changeLang(this)

instead of onclick="javascript:changeLang(this)"

but this gives exception..

Your quick response will be greatly appreciated...

[617 byte] By [ali_hammada] at [2007-11-27 9:45:07]
# 1
what are you trying to do? do you want to reload the page in a different language if the user clicks a button? if so, just redirect them to the new page....
den2681a at 2007-7-12 23:53:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...