+ 1
Who can solve this thing...help me
I'm searching a code or something....requirements are a js frame popup in which user will see a Web page and click on a button in that Web page...I just need to verify the users click on that button plzz help me Thanks.
6 Answers
0
so like any button.... just chillin there...
put an id on the button
<input type="button" id="mBtn" value="Click Me">
then in js. alert when they click
$(document).on("click","#mBtn", function(e){
alert("quit clicking my button...");
e.preventDefault();
});
im sure you could connect to a DAAS like firebase and log the username and time or something to see when a user clicks the button. but the jQuery above is the most simple example of knowing when a button is clicked..
***you will need the jQuery import somewhere in the project for that to work.
hope this helps. if you need something more specific pleaee dont hesitate to ask!
0
the Web page in that frame would be from third party...how could we modify that button
is their any function to trace click at specific location of that frame
hope u understand what I mean
0
trace a click.... not sure I follow on that one :p
and a specific location as in x, y or 0.0.0.0.......
0
I dont really see a reason to have to know where the user would click.
if it were a button theybwoulf be forced to click on that button
then onclick I posted earlier handles that specifix event
I have dealt with a lot of form submission/handling and other js stuff and I have never once worried about where and why a user clicks on a screen. is there a specific scenario maybe? of which you are trying to figure out.
the more details about the action you are trying to do the better. even if it sounds crazy lol
0
straight to the point
the website is a link exchange ring
and on that user will click on shrinked links (shortest link) of other users which I wish should get open on that popup js frame on which there will be ad and button called "skip ad" , I just want to confirm whether user click on that skip ad button or somewhere else.
- 1
Man m a beginner so try to understand me
I can't explain properly..but I know u got what I mean
yes x,y would be better