With this JavaScript linker.js: I want to open a new window and redirect to a webpage outside the current website, Here is my 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 am facing problem similar to url.Action open link in new window on ASP.NET MVC Page
How can I move out of my current website?