×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

JavaScript & DHTML example - How to specify an event handler with a Function object?


JavaScript & DHTML - How to specify an event handler with a Function object?

Take a look at the following simple example which illustrates this.
 
document.onfocus = new Function("document.bgColor='#ff0000'")

Category: JavaScript & DHTML

 
<< Go back