Js open devtools

I using Google Chrome with Dev Tools. I know how to open DevTools, but how to open it (DevTools) with js and html:

<!DOCTYPE html>
<html>
<head>
   <title></title>
</head>
<body>

<button onclick="function()">Open Dev Tools</button>
<script type="text/javascript">
function function() {
    "Code  for Open DevTools ......"
};
</script>

</body>
</html>

But what is the this code Code for Open DevTools ......?

Answers


Simply just press F12 on your keyboard


Need Your Help

How can I use Bootstrap styles in a LESS file?

import less twitter-bootstrap-3

I am trying to import bootstrap.css into a .less file, so that I can conditionally apply Bootstrap styles with media-queries.

Parsing XML response with Rails 4 and Savon 2

ruby-on-rails ruby-on-rails-4 savon

I´m using Rails and Savon 2 to get data from a SOAP Webservice.