How to open the link in the same tab

Asked

Viewed 16,827 times

1

I have the following code:

<form method='post' action='https://cieloecommerce.cielo.com.br/transactional/order/buynow' target='blank'><input type='hidden' name='id' value='00000000-0000-0000-0000-000000000000' /><input type='image' name='submit' alt='TESTAR' /></form>

It opens a new tab with the payment screen of Cielo, I wanted that when you press the button, it opens the screen in the same tab, and not open a new tab.

  • You could just omit the target because the default value is _self.

1 answer

4


Just change your link target.

<a href="#" target="_self">Link</a>
  • vlw, only half slow '-'

Browser other questions tagged

You are not signed in. Login or sign up in order to post.