简体   繁体   中英

How can I execute javascript in IE when the address bar is hidden?

I'm writing some automation scripts for our system and I'm using the browser's address bar to execute javascript.
ex.

javascript:$('#myButton').click();void(0);

However we have some popup pages where the address bar is hidden. Is there an easy way of showing the address bar or another method of executing javascript on a webpage?

Press F12, go to the Console tab, and paste JavaScript.

But this is far from automation, so you might want to look into tools created for just this purpose, like Selenium ;)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM