$(document).ready(function () {
var form = $('<form>', {
action: 'http://www.google.com/search',
target: '_blank',
}).append(
$('<input>', {
name: 'q',
value: 'jquery rocks',
type: 'hidden',
})
)
form.submit()
})