---
title: "Matt Dean (@mattdean) | Hashnode"
description: "Software Developer. Read the latest articles by Matt Dean on Hashnode."
url: "https://hashnode.com/@mattdean"
---

@mattdean

# Matt Dean

@mattdean · Canada · Joined January 2022

Software Developer

[Website](https://workingunittests.com/)

## Comments

[Sweta I believe this topic may not currently align with the focus of this blog (I suggest conducting research to determine if others have attempted this with the same JS framework you are using). Additionally, there are multiple factors that could impact the desired functionality you are seeking. It would be advisable to incorporate console logs and debugger statements in order to gain a thorough understanding of any deficiencies, whether they may involve errors or incorrect logic.](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848/comment/65ba7a0bf0a6c60a2b8b03da#reply-65bd1af276133a7d357a3036)

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

[Sweta Something that I find useful for these sorts of things is to search in your search engine the language you are working with (in this case, JavaScript) followed by your intended action. It takes a little tinkering to learn what keywords to use all the time, so expect a little practice. I ended up searching for "js open link in same tab" which helped me solve the issue](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848/comment/65ba7a0bf0a6c60a2b8b03da#reply-65bcfa994a3c860f11d905e7)

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

[Sweta Hey there! After a little research, this is actually solvable by instead of using '\_blank', use '\_self' and you should be good to go!](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848/comment/65ba7a0bf0a6c60a2b8b03da#reply-65bcfa2889ea4f87605f3809)

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

[Thank you for your comment! It is possible to use JavaScript to open a link in the same tab by following the instructions mentioned in the blog post, excluding the '\_blank' portion. For example, it would be window.open('https://workingunittests.com');](https://hashnode.com/posts/vuejs-button-tag-as-an-a-tag/61d633c588735812b7f38848/comment/65ba7a0bf0a6c60a2b8b03da#reply-65baea683abe85a9bd72c98d)

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