<html>
<head>
<title>HTML-JQuery</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
function url_redirect(options){
var $form = $("<form />");
$form.attr("action",options.url);
$form.attr("method",options.method);
for (var data in options.data)
$form.append('<input type="hidden" name="'+data+'" value="'+options.data[data]+'" />');
$("body").append($form);
$form.submit();
}
$(function(){
/*jquery statements */
url_redirect({url: "http://www.knowledgewalls.com",
method: "get",
data: {"q":"KnowledgeWalls"}
});
});
</script>
</head>
<body>
<!-- HTML statements -->
</body>
</html>
|