I am using chrome devtools to debug a site running on an android device. In an android device you usually have the "menu" button and the "back" button. How can I emulate a key press to one of these keys using chrome devtools?
The action performed on pressing the "back" button is dependent on the context. It can be one of the two:
window.history.back()
window.close()
, but it only works in conjunction with window.open()
, so in order to use it the workflow would be: call window.open()
-> do stuff -> call window.close()
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.