javascript - POP up triggered by a click -


i trying open popup clicking on button. please check below code , tell me why isn't working. using getreponse popup

http://www.reussirlegmat.com/2499-2/

<!doctype html> <html lang="en">       <head>       <meta charset="utf-8">       </head>       <body>            <button id="button" >show it</button>        <script type="text/javascript" src="https://app.getresponse.com/view_webform_v2.js?u=baaue&webforms_id=7152504">{       "name": "myuniqueform2"        }            </script>           <script>               var myform = grwf2.get('myuniqueform2'),              element = document.getelementbyid('button');          element.addeventlistener("click", function(){                   myform.show();               });            </script>        </body>     </html> 

on website, has put <p>...</p> tags around every line of script.

<p><script type="text/javascript" src="https://app.getresponse.com/view_webform_v2.js?u=baaue&#038;webforms_id=7152504">{</p> <p>"name": "myuniqueform2"   </p> <p>}   </p> <p></script>   </p> <p><script>     </p> <p>var myform = grwf2.get('myuniqueform2'),</p> <p>element = document.getelementbyid('button');</p> <p>element.addeventlistener("click", function(){       </p> <p>myform.show();     </p> <p>});   </p> <p></script> </p> <p></body></p> <p></html></p> 

those causing parse errors. rid of them.

i have no idea how did -- suspect edited code word processor , told export html.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -