<a id="link1" onclick="target=_self" href="http://test.com/";>link</a>

alert( $("#link1").attr("onclick") );

expect will be target=_self

but the result is

function anonymous()
{
target=_self
}

any idea how could I only get target=_self back

Reply via email to