How do I display a JavaScript link if the browser has JavaScript enabled, and yet have non-JavaScript browsers display a basic link to the next page?

Whether the browser has JavaScript enabled or not (or doesn't support it), I want each version of the page to display only their version of the link. That is, display the JavaScript link to JS browsers, and the non-JS link to Non-JS browsers.

One method I know is to set an ID on the non-JS link and use the style.display method to not display it for JS enabled browsers. However, this only works in IE4 and not NS4; and it does not remove the JS link for non-JS browsers.

Anyone have any suggestions? Thanks!