1) You don't. Normally I use JS for form validation too, and also do some validation in the form's action (PHP script). If JS is disabled, at least you can check in PHP. Not many people have JS disable by the way.
2) That can be achieved by this:
Code: Select all
<a href="http://www.php-forum.com/" target="_blank" onclick="window.open(this.href,'forum','width=800,height=600');return false;">click here</a>
The 'return false' means that the click doesn't trigger the regular respons from an <a href> tag (ie open the page). If JS is disabled, the onclick event cannot be executed, so the 'return false' is not executed and the regular response will be triggered.