Script to close current window

sunil29
Tera Contributor

Hello All,

Can any one tell me how many ways are there to close the window.

can you provide me the script to close the window.

8 REPLIES 8

rahulpandey
Kilo Sage

Hi,

window.close() is the method to close. Please remember, you can close a window if it generated via a script like below.

https://www.w3schools.com/jsref/met_win_close.asp

Then we can not write the script to close the form, if i open it in navigator.

can you explain in detail, I am new to service now.

Hi,

Could you please explain what use care you are trying to achieve here.

for example In incident form if I change assign to= Able Tuter, then the form should close automatically.

If I change assigne to some thing else it should not close.