- <html>
- <head>
- <script type="text/ecmascript" src="/lib/jquery-2.2.1.js"></script>
- <script type="text/ecmascript" src="/index.js"></script>
- <script type="text/ecmascript">
- function sayGoodbye() {
- $('#title').html('Goodbye');
- }
- </script>
- </head>
- <body>
- <h1 id="title" onclick="sayGoodbye();">
- Hello</h1>
- </body>
- </html>
|