html - Can't get a simple javascript prompt working -
<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>
this:
<script type=type="text/javascript">
should be:
<script type="text/javascript">
example: http://jsfiddle.net/hdpyn/
Comments
Post a Comment