无法获得简单的javascript提示工作

jak*_*ake 1 html javascript prompt

<html>
    <title>adsfasdf</title>
    <head>
        <link rel="stylesheet" type="text/css" href="style.css" >
          <script type="text/javascript">
        function editDates()
        {
        var dates = prompt("Fill in date(s) of absence", "Example: Travel 1/7 - 2/10");
        }
    </script>
    </head>

    <body bgcolor="#000088">



    <table cellspacing="0" border="1" cellpadding="1" width="100%" height="100%">
        <tr>
           <td>name</td><td>

                <form class="r1c1" method="link" action="index.html" onClick="editDates();">
                <input type="button" name="submit" value="Edit"/></form>
            </td>
        </tr>
    </table>
</body>
Run Code Online (Sandbox Code Playgroud)

use*_*716 6

这个:

<script type=type="text/javascript">
Run Code Online (Sandbox Code Playgroud)

应该:

<script type="text/javascript">
Run Code Online (Sandbox Code Playgroud)

示例: http ://jsfiddle.net/hDpyN/