Close web page JavaScript

0

I have a process that opens a web page.

<script>
  function Abrir() {
  miPopup = window.open("PopUp.asp", "miventana",   "width=500,height=250,menubar=no")
  } 
  </script>

By having the web page open, you ask a question which says, do you want to make the changes? and an accept button appears and another to cancel.

I need to click on the cancel button to close the PopUp.asp website

    
asked by ARR 13.07.2018 в 21:59
source

1 answer

0

One of the ways to close a web page using JavaScript is in this way

<input type="submit" value="Cancelar" onclick="javascript:window.close()">
    
answered by 13.07.2018 в 22:09