javascript - Form popup window getting block in internet explore -


This form is estimated to go to the next and open another popup window. I am passing this form of data on both pages.

The problem I have is that the popup window is visible in all the browsers except IE, it keeps getting blocked by popup blockers in IE. I need popup to show without blocking me.

  & lt; Script language = "javascript" & gt; Function myChangeHandler () {var form = document.getElementById ('TheForm'); Form.method = 'POST'; Form.action = 'https://test.com/page1'; Form.target = 'window_1'; Window.open ('', 'window_1', 'fullscreen = 1, scrollbar = 1'); This.form.submit (); Var state_ac = document.getElementById ('stdroop'); Var state_dd = state_ac.options [state_ac.selectedIndex] .value; Window.location = 'https://test.com/page2'; } & Lt; / Script & gt; & Lt; Form id = "TheForm" verb = "https://test.com/page2" method = "post" & gt; & Lt; Select id = "stateDrop" name = "state" size = "1" onchange = "myChangeHandler.apply (this)" & gt; & Lt; Option value = "zero" selected = "selected" style = "color: # b3b3b3" & gt; - Choose your state - & lt; / Option & gt; & Lt; Option value = "AL" square = "other" & gt; Alabama & lt; / Option & gt; & Lt; Option value = "A" square = "Other" & gt; Alaska & lt; / Options & gt; & Lt; Option value = "example" class = "other" & gt; Arizona & lt; / Option & gt; & Lt; / Select & gt; & Lt; Input id = "featured-image-right-button" type = "image" src = "& lt ;? php bloginfo ('template_url') ;? & gt; /images/featured-image-right-button.png" alt = "" Disabled = "disabled" /> & Lt; / Form & gt; Edit: See examples here, popup works in every other browser, when the option is selected but pop-up is blocked. It works fine in IE when the button is clicked, but the popup is blocked when the option is selected   "post-text" itemprop = "text"> 

edit Do: Changes the Internet Explorer blocks from the popup, you can take action when the user clicks on a button and will allow popups through the blocker.

  & lt; Input type = "button" value = "change country" onclick = "myChangeHandler (); return false;" />    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -