VBScript is not working in Chrome but works in IE

253 Views Asked by At

i have a bunch of code in vbscrpt.I need to work this in both IE and Chrome.How can i make this function work in Chrome as well as IE

 <msxsl:script language="VBScript" implements- 
   prefix="mydetails">
 Function Getdetails(Val1 , Val2)
  Dim blnGetdetails
    blnGetdetails = ((Val1 or Val2) = Val1)
   If blnGetdetails = true Then
    Getdetails= "True"
    Else
    Getdetails= "False"
   End If
    End Function
    </msxsl:script>
1

There are 1 best solutions below

0
Alex Marin On

Made as JS

function Getdetails(Val1 , Val2) { If (Val2 == Val1){ return true; } else { return false; } }