<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title></title> <script type="text/javascript"> function Overrideablefunc() { this.runfunc=function () { document.getElementById('txt').value = Date().substring(0, 24); setTimeout(this.runfunc, 1000); } } function runnewfunc() { var a=new Overrideablefunc() a.runfunc(); } </script> </head> <body> <input type="button" value="Run" onclick="runnewfunc()"/><br /> <input type="text" id="txt" style="width:400px"/> </body> </html>
var override = new Overrideablefunc(); override.runfunc();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)