Forum Discussion

Vaibhavi2495's avatar
Vaibhavi2495
Copper Contributor
Jan 22, 2024
Solved

Javascript functions not working in New Teams Tab App

After switching to New Teams, Alert and Confirm javascript functions do not work.

Note: Alert and Confirm functions works in Teams Classic version.

6 Replies

    • Vaibhavi2495's avatar
      Vaibhavi2495
      Copper Contributor

      Hi Prasad_Das-MSFT ,

       

      We are using basic JavaScript function "confirm( )" in our teams embedded tab web app. It is working fine in older version of MS Teams, But it is not working in the new  Teams Desktop Version 23335.232.2637.4844

       

      I have attached the MS Teams App Package Zip file for your reference.

       

      Here is my one line of code of my embedded page:

      <input type="button" value="Are you sure?" onclick="javascript&colon;confirm('Hey CONFIRM is working!!')"/>

       

      Thanks in advance,

       

      • Prasad_Das-MSFT's avatar
        Prasad_Das-MSFT
        Icon for Microsoft rankMicrosoft

        Vaibhavi2495 - We tested the app both in Legacy Teams and New Teams (Both in Desktop and Web client) and observed below behaviour.

        In Teams Classic (Legacy): (Both Desktop and Web): It works fine


        In New Teams: In web client it works fine, but in Desktop clients it doesn't work.
        Web Client:


        Desktop Client:



        Is it working for you in web client (New Teams). Could you please confirm?



         



Resources