Google is Dead

Or entering a new phase - simply useless..


And chatGPT (super!) :

In HTML, you can define a button element and attach an onclick event handler to it. When the button is clicked, the JavaScript function specified in the onclick attribute will be called.

To send an element as an argument when using onclick, you can pass the this keyword as an argument in the function call. The this keyword refers to the element that triggered the event (in this case, the button element).

Here's an example:

html
<button onclick="myFunction(this)">Click me</button> <script> function myFunction(element) { console.log(element); // logs the button element } </script>

In this example, when the button is clicked, the myFunction() function is called with the this keyword passed as an argument. The function then logs the element to the console. You can then use the element parameter in the function to access and manipulate the properties of the button element.

Other searches where Google proved useless :

  • html button this parent
  • html button this parent
chatGPT - no problem - tells you to use this.parentNode with onclick - in a second. Thank you chatGPT!

Another one where Google delivered absolute zilch :

can you use javascript to detect mouseup on page body?

Yes, you can use JavaScript to detect a mouseup event on the page body. Here's an example code snippet that demonstrates how to do this:

javascript
document.body.addEventListener('mouseup', function(event) { console.log('Mouseup event detected on page body!'); });

In this code snippet, we are using the addEventListener method to add a mouseup event listener to the body element. When the mouseup event is detected on the page body, the function that we've passed as the second argument to addEventListener will be executed. In this case, we're simply logging a message to the console, but you can replace this with any code that you want to run in response to the mouseup event.

Thank you chatGPT!

And more and more :

In Google :

italian ingenuity for getting around bureaucracy

Gives zilch. But chatGPT :

Italians commonly refer to the ingenuity they use to get around bureaucracy as "furbizia" or "furberia." These terms are used to describe the cleverness or resourcefulness that Italians often employ when navigating the complex bureaucratic systems in their country. In some cases, these tactics may be considered unethical or even illegal, but they are often viewed as a necessary means of getting things done efficiently in a bureaucratic environment.

You ain't seen the end of this.

what is gambiara in brazil?

Shows results for "what is gambia in brazil"

chatGPT :

"Gambiara" is a term used in Brazil to refer to a creative and resourceful solution to a problem using whatever materials are available. It is a form of improvisation that involves making something work or fixing something using unconventional methods or materials.

Comments

Popular posts from this blog

Coursera - My Take