Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Close window (page)

 Post Reply Post Reply
Author
Dino Gomezel View Drop Down
Member
Member
Avatar

Joined: 27 Aug 2018
Posts: 88
Post Options Post Options   Quote Dino Gomezel Quote  Post ReplyReply Direct Link To This Post Topic: Close window (page)
    Posted: 14 Nov 2019 at 8:08am
Ji!

I have a button "Close" on my form. How can I make it close the page in the browser?

I tried
self.Close;
(No error, but not working)

window.close();
(This also produces an error "Scripts may close only the windows that were opened by it" in the broeser console)

But doesn't work.
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2162
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 14 Nov 2019 at 9:27am
Hi,

You can use "Close;" for a form that was displayed from code.

Can you please have a look at the Demo/Basics/MultiForm application for an example?
The demos are included with the TMS Web Core download.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down