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">
    <title>JS Bin</title>
    <!-- Faker.js v3.1.0 -->
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js"></script>
</head>
<body>
    Name: <input type="text" id="name" />
    Email: <input type="text" id="email" />
    <button onclick="javascript: generator()">Generator</button>
    <script>
    function generator() {
        document.getElementById( "name" ).value = faker.name.findName(); // 產生姓名
        document.getElementById( "email" ).value = faker.internet.email(); // 產生信箱
    }
    </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
hsuehmingfangpro
0viewers