onpropertychange Event Internet Development Index --------------------------------------------------------------------------------Fires when a property changes on the object.SyntaxInline HTML <ELEMENT onpropertychange = "handler" ... > All platforms Event property object.onpropertychange = handler JScript only object.onpropertychange = GetRef("handler") Visual Basic Scripting Edition (VBScript) 5.0 or later only Named script <SCRIPT FOR = object EVENT = onpropertychange> Internet Explorer only Event InformationBubbles No Cancels No To invoke Cause a property to change value. Default action Sends notification when a property changes. Event Object PropertiesAlthough event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.Show Available PropertiesaltKey Sets or retrieves a value that indicates the state of the ALT key. altLeft Sets or retrieves a value that indicates the state of the left ALT key. ctrlLeft Sets or retrieves the state of the left CTRL key. propertyName Sets or retrieves the name of the property that changes on the object. shiftLeft Retrieves the state of the left SHIFT key. srcElement Sets or retrieves the object that fired the event. type Sets or retrieves the event name from the event object. 试试这样行不行,我没试 <input class="Input" NAME="pic1" TYPE="FILE" onpropertychange ="javascript:form2.pic2.value=from1.pic1.value" >
Event property object.onpropertychange = handler JScript only
object.onpropertychange = GetRef("handler") Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = object EVENT = onpropertychange> Internet Explorer only Event InformationBubbles No
Cancels No
To invoke Cause a property to change value.
Default action Sends notification when a property changes. Event Object PropertiesAlthough event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.Show Available PropertiesaltKey Sets or retrieves a value that indicates the state of the ALT key.
altLeft Sets or retrieves a value that indicates the state of the left ALT key.
ctrlLeft Sets or retrieves the state of the left CTRL key.
propertyName Sets or retrieves the name of the property that changes on the object.
shiftLeft Retrieves the state of the left SHIFT key.
srcElement Sets or retrieves the object that fired the event.
type Sets or retrieves the event name from the event object. 试试这样行不行,我没试
<input class="Input" NAME="pic1" TYPE="FILE" onpropertychange ="javascript:form2.pic2.value=from1.pic1.value" >
可是我输入文件路径就可以呢
有谁能解决这个问题
fileInput.value只能读,不可写~~~用DELPHI的方式表达这个VALUE就是(方便说明而已,看不懂没关系)property Value: string read FValue;而一般的TextInput的表达方式是property Value: string read FValue write FSetValue;
procedure FSetValue(v: string);