Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33001

Is there a way to send Escape keyCode to close whatever popup on the screen?

Newsgroups comp.lang.javascript
Date 2017-04-13 20:26 -0700
Message-ID <7cd34ecf-0cea-4e1b-845c-2be259210348@googlegroups.com> (permalink)
Subject Is there a way to send Escape keyCode to close whatever popup on the screen?
From justaguy <lichunshen84@gmail.com>

Show all headers | View raw


Hi,

Some times we see some pop up screen and if we press the Esc key the pop up screen would disappear (close).  
I wonder if we are able to send some js code to execute the manual Esc key press, that is, how to send the keyCode of 27 to the browser via JS?

Thanks.

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Is there a way to send Escape keyCode to close whatever popup on the screen? justaguy <lichunshen84@gmail.com> - 2017-04-13 20:26 -0700
  Re: Is there a way to send Escape keyCode to close whatever popup on the screen? JJ <jj4public@vfemail.net> - 2017-04-14 12:23 +0700
    Re: Is there a way to send Escape keyCode to close whatever popup on the screen? justaguy <lichunshen84@gmail.com> - 2017-04-16 18:09 -0700

csiph-web