kanakadurga79 Posted September 3, 2023 Share Posted September 3, 2023 Hi, I am facing issue in closing the window with window.close(). Is there any option to close the window by page id. Please suggest. Thank you Quote Link to comment https://forums.phpfreaks.com/topic/317244-windowclose/ Share on other sites More sharing options...
Barand Posted September 3, 2023 Share Posted September 3, 2023 Do not double-post topics. Post in the correct forum (Moving this from Introductions to Javascript forum) Quote Link to comment https://forums.phpfreaks.com/topic/317244-windowclose/#findComment-1611568 Share on other sites More sharing options...
requinix Posted September 3, 2023 Share Posted September 3, 2023 "window" is an object. window.close closes the current window because that's what the variable means. If you have a variable for a different window, like one returned by open(), then you can call close() on it. Quote Link to comment https://forums.phpfreaks.com/topic/317244-windowclose/#findComment-1611586 Share on other sites More sharing options...
kanakadurga79 Posted September 4, 2023 Author Share Posted September 4, 2023 Thank you for the response Quote Link to comment https://forums.phpfreaks.com/topic/317244-windowclose/#findComment-1611588 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.