submit - Redirect to an external website JavaScript with POST method -
with javascript linker.js: want open new window , redirect webpage outside current website, here code:
deps = ['jquery']; define (deps, function($) { var linker = { 'link' : function(ortholog,link) { $form = $('<form>'); $form.attr("method","post"); $form.attr("action",link); $form.attr("target","_blank"); $input = $("<input>"); $input.attr("type","hidden"); $input.attr("value",ortholog); $form.appendchild($input); $form.submit(); } //return linker(); } return linker; });
i facing problem similar url.action open link in new window on asp.net mvc page
how can move out of current website?
Comments
Post a Comment