我必须将以下函数转换为 javascript,
Sub document_onkeydown()
If window.event.keyCode = 27 Then
window.event.ReturnValue = false
ElseIf window.event.keyCode = 13 Then
If TypeName(window.event.srcElement) = "HTMLInputElement" Or TypeName(window.event.srcElement) = "HTMLSelectElement" Then
If window.event.srcElement.name <> "QuickSearch" Then
Call butSearch_OnClick
End If
End If
End If
End Sub
谁能帮我转换以下几点,
window.event.ReturnValue = false
TypeName(window.event.srcElement) = "HTMLInputElement"
window.event.srcElement.name <> "QuickSearch"
非常感谢