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

202
Views
JS, use current screen instead of window.open because of blocking pop up

I am an app developer so I really don't know about web skills.

Among the APIs I am using, there is a structure in which a response comes in a pop-up window when a form submits.

function fnPopup(){
    window.open('', 'popupChk', 'width=500, height=550, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
    document.form_chk.action = "www.abc.net";
    document.form_chk.target = "popupChk";
    document.form_chk.submit();
}

<form name="form_chk" method="post>
    <input type="hidden" name="m" value="someValue1">               
    <input type="hidden" name="k" value="someValue2">
    <a href="javascript:fnPopup();"> Submit Click</a>
</form>

They seem to have used this method because this API has a structure that the session cannot be disconnected.

However, the pop up blocker is unconditionally default whether it is Chrome or Safari. I want to intercept this popup window information and display it in full screen for iOS app release. Is there a way?

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

0

Here is one way you can do this:

<body>
<h1>My Awesome Site!</h1>
</body>
<script>
    // Create a link
    const link = document.createElement("a");
    // Link to a website
    link.href = "https://www.youtube.com/";
    // Append it to the site
    document.body.appendChild(link);
    // Click the link
    link.click();
</script>

Hope this works.

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!