Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Existing Answer in the forum:
Add an expression widget, and set it on Expression=close();
Then you just need to trigger that expression widget whenever you want to close the browser window.
By, CarlesColl,
I tried the above solution to close the current tab by a button click, It is working fine when it is triggered from the parent window(E.g: triggered from view mashup option) But not working when I copy the URL put into the new window.
Kindly provide the solution for this ASAP.
Thank You
Regards,
Janakiraman P
Solved! Go to Solution.
If you look on the browser developer tools console you will see the reason why:
I think you are out of look on that situation... there's an interesting read about it on Stackoverflow: https://stackoverflow.com/questions/19761241/window-close-and-self-close-do-not-close-the-window-in-chrome
Hi,
I don't understand what does you mean with saying copying the URL and putting into a new window, if the URL it's the same as the original should also work, or I don't understand the context...
Carles.
Hi Carles,
I meant to the mashup URL. To explain the same, I used academic edition.
Please find the following attachments explains what I tried to.
Use the following URL for your ref,
id: Janakiraman
pwd: janakiramanjohn
If you look on the browser developer tools console you will see the reason why:
I think you are out of look on that situation... there's an interesting read about it on Stackoverflow: https://stackoverflow.com/questions/19761241/window-close-and-self-close-do-not-close-the-window-in-chrome
Hi,
Do we have any other option to close the current tab or complete browser?
I need it.
Regards,
Janakiraman P