Answer the question
In order to leave comments, you need to log in
Why is the code not executing in Firefox?
There is a function:
function site(url) {
event.preventDefault();
if (typeof url == 'undefined') var url = $('#url').val();
$.post("site.php", { url: url}, function(data){ $("#site").html(data); });
}
<a href="" class="button" onclick="site('url')">text</a>
<form method="POST" action="javascript:void(null);" onsubmit="site()">
<input id="url" name="url" value="" type="text" autocomplete="off">
</form>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question