Tutorialsplane

Vue.js Close Window


We can use native JavaScript .close() property to close the current open window. Here in this tutorial, We are going to explain how you can close the current open window in Vuejs. You can use our online editor to edit and close the current window.


Vue.js Close Window Example

Here is an example of open and close the current window-

Example:

<div id="app">
	<button>Open Window</button>
	<br/>
	<button>Close Window</button>
</div>

Try it ยป