I wrote VBScript in my project, but this is only working on IE and not chrome/firefox. I need a VBScript library for my code. How will this code work on chrome and firefox. My code is
<SCRIPT LANGUAGE="VBScript">
Sub clickHandler()
sP = Window.Event.SrcElement.ID
If Left(sP, 1) = "M" Then
Set oC = Document.All("C" & Mid(sP, 2))
If oC.Style.Display = "none" Then
oC.Style.Display = ""
Else
oC.Style.Display = "none"
End If
Set oC = Nothing
End If
End Sub
</SCRIPT>
Client-side VBScript code only works on IE.
Chrome and Firefox, being more standards compliant, expect Javascript client-side code
It looks like your click handler is hiding/displaying something. This is quite easily achievable in Javascript with JQuery, eg this should hide 'elementid' when it is clicked:
VBScript only works in Internet Explorer