I know the title sound similar with some other threads but it's a little bit different.I have few buttons like those:
<input type=button name=Ok onclick='window.location="www.bla.com/bla.php"'>
When the user press any of them,i want a javascript or jquery code to run, but after,i want to be send to www.bla.com/bla.php.
I have a jquery code for submitting the form:
$( document ).ready(function() {
$(':button').click(function(){
document.getElementById('contact').submit();
});
The jquery code works,but the buttons does not...
window.locationto work.