0
我有以下功能的JavaScript轉換,什麼是vbscript TypeName的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"
非常感謝您