NetTalk Central

Author Topic: Closing a tab with button  (Read 3516 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Closing a tab with button
« on: November 17, 2020, 10:32:06 PM »
Hi Bruce,

I have a memory NetWebForm procedure that is called from another proc. The memory NetWebForm opens in another tab.

I have a button on this form where onClick [JavaScript] is set to 'ntd.close();' but it is not closing the tab.

What's the right way to do this?

Regards,
Ubaidullah Nubar.

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Closing a tab with button
« Reply #1 on: November 18, 2020, 04:30:49 AM »
Did you try window.close(); ?
-----------
Regards
Alberto

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Closing a tab with button
« Reply #2 on: November 19, 2020, 11:15:57 PM »
Thanks Alberto.

That worked.

Regards,
Ubaidullah Nubar.