Script to close current window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2018 12:35 AM
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.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2018 12:50 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2018 03:27 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2018 03:36 AM
Hi,
Could you please explain what use care you are trying to achieve here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2018 04:17 AM
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.