ModdersCentral
Basic - Printable Version

+- ModdersCentral (http://modderscentral.com)
+-- Forum: Coding (http://modderscentral.com/forumdisplay.php?fid=4)
+--- Forum: JavaScript (http://modderscentral.com/forumdisplay.php?fid=9)
+--- Thread: Basic (/showthread.php?tid=9)



Basic - jamie - 04/07/2018

Code:
<!DOCTYPE html>
    <html>
        <head>
            <title>WebPage Title</title>
            <script>
              function printtoconsole(){
                 alert('hello');
              }
            </script>
        </head>
        <body>
            <input type="button" onclick="javascript:printtoconsole()">
            content here
        </body>
    </html>



www.000webhost.com