html – Identify what element got clicked on a form in JavaScript

I am trying to pass a ref to a function so that I know which html element was clicked. If I don’t pass the ‘this’ (and remove the ()’s from the html) it will always only hide the top TR. I need it to hide it’s own TR. BUT, and this is a big BUT, I will not know what row has the “click me” text so hard coding a unique id is not an option. They will all have the same ‘id’ (an array of IDs), or no ‘id’ at all (array of rows).

<!DOCTYPE html>
    <tr id="row()"><td>Hello 1</td></tr>
    <tr id="row()"><td>Hello 2</td></tr>
    <tr id="row()"><td><p onclick="myFunction(this)">Hide me.</p></td></tr>
    <tr id="row()"><td>Hello 1</td></tr>
    <tr id="row()"><td>Hello 2</td></tr>
function myFunction(elmnt) {
 document.getElementById("row(elmnt???)").style.display = 'none';

windows 10 – Full screen videos in Chrome are not appearing when alt+tab is clicked

When I watch a video in full screen and alt+tab to switch to a different chrome window, I have noticed that I cannot alt+tab back to the window where the video was playing. It just won’t appear in the alt+tab (i.e. there is one less chrome window shown in the selection). However, it does appear when clicking win+tab and when clicking the layered chrome icon on the taskbar. Is there any way to fix this, as it is rather annoying.

How to record what is being clicked on google sites with google analytics?

Google Analytics is what you will encounter, as it’s the latest
Analytics version of Google.
The previous version is called Universal Analytics and can still be used.

Both Universal and Google Analytics offer similar data to users,
although Universal Analytics gives more in-depth information about user behavior, so fits better your needs.

Universal Analytics events
is described as:

This article explains how to use Tag Manager to set up Universal Analytics event tags that are triggered in response to clicks on links, clicks on other types of elements, at timed intervals, and when a forms are submitted.

As this might change in the future, here is just the main information.

Link clicks

There are two common methods shown here for how to send click event
information to Google Analytics:

  • Use a separate trigger and tag for each type of link.
  • Use a single tag with a regular expression to handle all click data.

Clicks on any element

Use this technique to measure clicks on elements other than links.
This includes clicks on images, elements, or any other item on
the page accessible by the DOM.

Timed intervals

Measure timed intervals when you need to understand time on page when
no events are triggered.

Form submits

This technique will cause a tag to fire every time a form on a web
page is submitted.

Universal Analytics requires additions to every page whose activity
you wish to track.

How to record what is being clicked on google sites with google analytics?

I added google analytics to a google site with the hopes of being able to record what people are clicking on (what resources are being used and not being used) in order to better optimize the page in the future, however, it seems as if only events are being clicked without any descriptor of what is being clicked or what page is being viewed. Is there a way to change this? See below.

enter image description here

click – How can I make it more obvious that a radio button needs to be clicked?

We have a booking platform where users choose different types of activities to do in their area; each activity has many sessions or options, which are listed in radio button groups as shown in this image :

enter image description here

The issue is that customers don’t know that they have to click on the radio button or anywhere in the box to the right of it to make a selection.

What would be the best way to solve this issue ?

How can I undo if I clicked on "don’t recommend this channel" on youtube?

I have all of my history and even went to my google activity. But nothing worked plz help me.

mysql – In, how can I click a button that only appears after another button is clicked?

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

malware – Accidentally clicked a phishing link, am I at risk?

You likely have nothing to worry about. Phishing relies on tricking you into entering sensitive credentials. It’s very rare for it to exploit you directly and if they did want to do that, they wouldn’t be showing you a password prompt. However, it is possible that merely typing in your account details sent data to them even if you did not press enter, so you should change your password. I don’t think that’s likely in this case, since I logged network activity while typing a dummy password into that phishing site and could only see it send it when I actually pressed enter, but it’s still a good idea to change those passwords.

It is possible that the page has attempted to use exploits against your browser regardless. Generally, these exploits will be against old browsers or outdated plugins. If you keep your browser up to date, it should not have public security issues that could be used to install malware via a drive-by download.

privacy – I clicked on a link that got my ip leaked

The good news is that this is probably not as big a deal as you think. There are a lot of articles (usually written by people selling VPN subscriptions) that make it sound super scary to leak you IP address. This article is a bit more neutral:

Exactly how much information can be learned from your IP address will depend on how your Internet Service Provider (ISP) has set up their network and how they buy and assign IP addresses to their users. The pictures in this article explain it nicely. Most home internet ISPs will assign a unique public IP to each home router, in which case your IP address is unique to you. But some ISPs will put multiple customers behind a NAT so that they all share one public IP address (in particular I think mobile carriers do this because the sheer number of mobile devices would quickly exhaust the 232 possible public IPs). So the first step is to check how your ISP assigns IP addresses.

Next, even if your IP address is unique to your house, that does not mean the attacker will be able to get your address from it. Attackers will look up your IP address in a GeoIP database such as this free one, which is a big lookup table of IP addresses to physical addresses. How does the GeoIP database know your address? It doesn’t. Usually they will know that, say Comcast has reserved a certain block of IPs for, say, customers in northern Atlanta, and so the GeoIP database will just have a pin somewhere in northern Atlanta. In my case, the GeoIP database I linked to has my location wrong by about 500 km.

TL;DR I wouldn’t worry too much about it.

About this:

I have already tried unplugging my router because I was told that my IP address would change.

Did it change? (You can see your IP address my typing “my ip” into google). If it did not change with a reboot, your router may have a very long lease time (sometimes weeks), but you could try logging into your router’s admin page and see if there’s a button to drop the ISP connection or reset your IP address.

Prevent spam registration checking if the submit button is clicked

I am trying to achieve something on registration page. Using login_footer action hook I am adding following script:

const element = document.getElementById('wp-submit')
element.addEventListener("click", () => {

As you can see, this is checking if the submit button is clicked. Now, what I want is: if the submit button is clicked, it’s okay; otherwise registration form won’t be submitted.

How can I achieve that.
Thanks in advance.