Skip to main content
natrev
Legend
October 26, 2017
Question

Block or allow pop-ups using in Photoshop HTML extension

  • October 26, 2017
  • 1 reply
  • 1473 views

Hi Everyone,

Is there is possible to Block or allow pop-ups using in Photoshop HTML extension?

I need to open webpage in Inner HTML, If suppose I do It show's Popup blocked.

Please suggest me how do I solve the problem.

Code:

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title></title>

</head>

<body>  

    <div id="topBar"> <a href ="#" onclick="load_home()"> HOME </a> </div>

  <div id ="content"> </div>

  <script>

  function load_home() {

     document.getElementById("content").innerHTML='<object type="text/html" data="http://xxxxxx.yyy.com/zzz/homepage.asp" style="width:300px; height:300px;"></object>';

  }

  </script>

   

    </body>

</html>

-yajiv

This topic has been closed for replies.

1 reply

Trevor:
Legend
October 26, 2017

Maybe this will help

javascript - Remove POP up in Iframe - Stack Overflow

<iframe src="pageURL" sandbox="allow-forms allow-pointer-lock allow-same-origin allow-scripts allow-top-navigation"></iframe>

IF not try https://www.google.com/search?num=50&safe=active&ei=cZXxWZ_FNIKAmQHH1LyYDg&q=block+pop+up+in+Iframe+js&oq=block+pop+up+i…

Post the answer here

HTH

Trevor

natrev
natrevAuthor
Legend
October 26, 2017

Hi Trevor,

Thank you for the prompt response and I am getting same result ..

Please advice.

-yajiv

Trevor:
Legend
October 26, 2017

A start would be to see what's triggering the alert. It's probably the js on the source of the iframe content.

Examining the downloaded source contents would e a good start.

You can examine it easily with any regular browser.

If you can find the line that creates the alert then you can think about neutralizing it.