How do I close my window in Xpage?

后端 未结 5 655
死守一世寂寞
死守一世寂寞 2020-12-21 06:46

Actually I am using the following code for closing my current window:

window.close()

The thing is, it is working fine in IE, but it is not

5条回答
  •  渐次进展
    2020-12-21 07:20

    I found a partial solution, Java is your friend. It works in a button should work in a link too. The only problem is when called from an event like onClose the current xpage looses focus and the current pages stays open. I tried to emulate send keys and it presses the ESC key. It works fine from a button in. Button on CLick event

    
        
            

    robot.keyPress(event.VK_ESCAPE); robot.keyRelease(event.VK_ESCAPE); enter code here}]]>

        
    
    

提交回复
热议问题