Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

106
Views
Pop up on swipe?

Is there any way to pop up new window on swipe event, like on click?

Browser's bockers for some browsers blocking it. So far I tried to trigger click event on swipe, tried to delay pop up, tried to use e.preventDefault(), tried to window.document.write(htmlcontent), so far nothing really helped.

The swipe falls into iframe and returns the event, by which pop up is called. So unfortunately for me it is direct interaction of user, but it doesn't register as one. So generally is there any way to avoid pop up blocker if the interaction is not direct?

The message returned with postmessage, the message is true or false. If true at the touchend pop up window suppose to appear with sign in fields.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Couldn't edit the original questions, though here is a code snipped for you: no pop-up blocking apeared, though even if you aprove pop-up the browser ignores.

document.addEventListener('touchmove',e => {
  window.open("https://stackoverflow.com/questions/71914104/pop-up-on-swipe")
})

Note: Touch Devices only

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!