Code:
<a href="test.htm" onclick="ajaxpage(this.href, 'contentarea'); return false;">test</a>
Would be better. The ajaxpage function has no return value unless it fails, and then it's false. So returning it would fire the link when ajaxpage works and not fire the link when it fails, the opposite of what would be desired. If you wanted to put a fine point on it:
Code:
<a href="test.htm" onclick="return ajaxpage(this.href, 'contentarea') === false;">test</a>
Which would execute the link only if ajaxpage fails or javascript is unavailable.
Bookmarks