NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Ubaidullah on November 17, 2020, 10:32:06 PM

Title: Closing a tab with button
Post by: Ubaidullah 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.
Title: Re: Closing a tab with button
Post by: Alberto on November 18, 2020, 04:30:49 AM
Did you try window.close(); ?
Title: Re: Closing a tab with button
Post by: Ubaidullah on November 19, 2020, 11:15:57 PM
Thanks Alberto.

That worked.

Regards,
Ubaidullah Nubar.