1

I want to open automatically inspect element through javascript in documnets.ready function without pressing key on keyboard

BJ Coder
  • 350
  • 5
  • 16

1 Answers1

2

Similar in essence to: Programmatically triggering Ctrl+S

And I believe the given answer would apply here too,

There is no way to programmatically trigger input keys in the sandboxed browser environment under normal circumstances.

but I stand to be corrected.

Community
  • 1
  • 1
Morvael
  • 3,478
  • 3
  • 36
  • 53
  • But i need specific - want to open inspect elements through javascript, can you please write code for me ? – BJ Coder May 14 '16 at 14:35
  • Sorry if there was any confusion. What I was trying to say is. "I don't believe what you are asking to do is possible". Why do you need to do this? There may be other solutions. – Morvael May 16 '16 at 06:41