| |
rahul27
Posts: 19
Score: 0
Joined: 5/23/2001
From: India
Status: offline
|
In VBScript, I am trying to use onfocus to change the background color of a form field named T1 to green, Then onblur to change it back to white. It's simple in VB, but I keep getting an 'Object Required : T1' error in VBScript. I can put a MsgBox in the Sub and it'll work fine. sub T1_onfocus() msgBox "Hello" 'Works fine '(Now, how can I change the background color of the field?) end sub sub T1_onblur() set T1.bgcolor="#FFFFFF" end sub
|
|