javascript - target and window open not working together in IE -


I am trying to click on a new window of a link. This form submits and should open the defined window in the target. I have been successful in doing this in Chrome and FF but not in IE.
Below is my code:

  & lt; Form name = "myForm" id = "myForm" method = "get" action = "$ {URL_DOCUMENT}" & gt; & Lt; Table border = 1 cell padding = 1 width = "50%" style = 'table-layout: fixed' id = "table1" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th align = 'left' & gt; Statement date & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; C: forEach var = "statement" item = "$ {list}" & gt; & Lt; TR & gt; & Lt; Td> & Lt; A href = "" onclick = "return callsmit (this)" & gt; & Lt; C: out value = "$ {comment.date}" /> & Lt; Img src = '/ images / dat.png' alt = "style =" border-style: none "& gt; & Lt; / A & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / C: foreach & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; Input type = "hidden" name = "key" id = "key" value = "" /> gt; & Lt; / Form & gt; & Lt; Script type = "text / javascript" & gt; Function call (link) {var test = link.innerHTML.split ("& lt;"); Document.getElementById ("key"). Value = test [0]; Var w = window.open ('', 'newDocWin', 'width = 500, height = 300, titlebar = no, toolbar = not, location = no'); . Document.getElementById ('MyForm') presented (); return false; } & Lt; / Script & gt;   

Opening 2 windows in IE The window that I define and the other (not sure where it's coming from). This is working fine in Chrome and FF (PDF response in the defined window.) Am I doing anything wrong here?

Can it be as simple as this?

  & lt; Form action = "demo_form.php" method = "get" target = "_ blank" & gt;    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -