Jump to content

SetCookie on BackButtonAction(bbaWarnUser)


Vision

Recommended Posts

Hi ,I'm using unigui UniGui v1.90.0.1514 .

I need to set cookie when user see unimainmodule-->BackButtonAction:=bbaWarnUser; A callback to a procedure should be perferct..

It is possible? 

IN PARTICULAR: i need to set cookie when RELOAD is pressed.

Tnks

 

Link to comment
Share on other sites

1 hour ago, Sherzod said:

Maybe, something like this?

MainForm.Script:


window.addEventListener('unload', function(){
    document.cookie = "reloaded=yes"
});

 

Hi

tnks for reply, i just need 2 things:

1) How to integrate and where? I mean, is something like addJs and i have to put in main.create? 

2) I need to set specific value in cookies, so, can i have an example? 

 

Tnks again

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...