Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html> 
<html> 
<head> 
<script type="text/javascript">
function formresponse() {
    var m = document.forms["form1"]["meal"].value;
    var d = document.forms["form1"]["drink"].value;
    if (m==null || m=="")
       {
        alert("餐點不可為空白!");
        return false;
       }
    else if (d==null || d=="")
       {
        alert("飲料不可為空白!");
        return false;
       }
    else
       {
        var MySubmit = "https://docs.google.com/forms/d/1iIyc3lQ5Rg3lptEomwclJwawfhUF3AFLKgpBdPHrPAs/formResponse?entry.1105876683=" + m + "&entry.720345023=" + d + "&submit=Submit";
        var NewOpen = window.open(MySubmit);
       }
}
</script>
</head>
<body>
    <form name="form1" action="javascript:formresponse();">
        便當: <input type="text" name="meal"><br />
        飲料: <input type="text" name="drink"><br />
        <input type="submit" value="Submit">
    </form>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers