---
title: "Sweta (@Sweta14) | Hashnode"
description: "Sweta (@Sweta14) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@Sweta14"
---

@Sweta14

# Sweta

@Sweta14 · Joined January 2024

## Comments

[Matt Dean thanks a lot for your immediate response. will check the errors in console since it's showing Typeerror: cannot read properties of null for navigation.](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848/comment/65ba7a0bf0a6c60a2b8b03da#reply-65bd1dc5296c905cabe6e3b5)

Reply · Article · Feb 2, 2024 · [Vue.js <button> opening a new tab](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848)

[Matt Dean I have tried using '\_self', window.location.replace, window.location.href, window.location.assign all did not work for opening the link in the same tab. '\_self' is opening current page what is opened in website but not the respective page of the link after clicking on the link. Kindly provide some other solution.](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848/comment/65ba7a0bf0a6c60a2b8b03da#reply-65bcfb3f4c3be0dc6139fa4b)

Reply · Article · Feb 2, 2024 · [Vue.js <button> opening a new tab](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848)

[Yes Matt Dean I have tried this but due to window.open it's opening in new tab not in the same tab. Kindly provide some other solution to open link in same tab.](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848/comment/65ba7a0bf0a6c60a2b8b03da#reply-65bc6c32671de10dc5aab9a3)

Reply · Article · Feb 2, 2024 · [Vue.js <button> opening a new tab](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848)

[Kindly upload the code for opening button in same tab with proper navigation of respective page of button selected](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848/comment/65ba7a0bf0a6c60a2b8b03da)

Comment · Article · Jan 31, 2024 · [Vue.js <button> opening a new tab](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848)
