KW Online Tools Zone
Knowledge Walls
View All Tools Home
JQUERY REDIRECT EXAMPLE WITH POST METHOD CALL
[Jquery editor]
Run
Share Link
Clear
HTML [Ctrl+Enter] - to run
JQuery redirect example with post method call
CSS [Ctrl+Enter] - to run
Jquery [Ctrl+Enter] - to run
function url_redirect(options){ var $form = $("
"); $form.attr("action",options.url); $form.attr("method",options.method); for (var data in options.data) $form.append('
'); $("body").append($form); $form.submit(); } $(function(){ /*jquery statements */ url_redirect({url: "http://www.knowledgewalls.com", method: "get", data: {"q":"KnowledgeWalls"} }); });
OUTPUT
Copyright © 2021 Knowledge walls, All rights reserved
Copyright © 2021 Knowledge walls, All rights reserved