Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <script type="text/javascript">
        function validate(form) {
            if(form.data.value.length === 0) {
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form name="form1" action="fake.do" onsubmit="return validate(this);">
        輸入資料:<input name="data"><br>
        <button type="submit">送出</button>
    </form>    
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
JustinSDKpro
0viewers