1
I created a button of a form, but when clicking it gives refresh in the index page where it is and I don’t want it, I don’t want you to update the page, I just want you to open the popup with the form, as I correct?
a href="#" onclick="window.open('form.html', 'Pagina', 'STATUS=NO, TOOLBAR=NO, LOCATION=YES, DIRECTORIES=NO, RESISABLE=YES, SCROLLBARS=YES, TOP=90%, LEFT=280%, WIDTH=485, HEIGHT=545');"><img src='imagens/button-contato.png'></a>
Form data.html
<!DOCTYPE html>
<html>
<head lang="PT-BR">
<meta charset="UTF-8">
<title>Formulário de Contato</title>
</head>
<body>
<!-- Do not change the code! -->
<a id="foxyform_embed_link_181315" href="http://br.foxyform.com/">foxyform</a>
<script type="text/javascript">
(function(d, t){
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = "http://br.foxyform.com/js.php?id=181315&sec_hash=e727220c0f2&width=445px&heigth=525px";
s.parentNode.insertBefore(g, s);
}(document, "script"));
</script>
<!-- Do not change the code! -->
</body>
</html>
you want the page not to refresh, and do what ?
– RickPariz
Try using an "Event.preventDefault() followed by Return false" at the end of onclick.
– Bruno