Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

make form submit on new window using jquery

var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", xxx);

function submitToPopup(f) {
    var w = window.open('', 'form-target', 'width=600, height=400, any-other-option, ...');
    f.target = 'form-target';
    f.submit();
};

document.body.appendChild(form);

submitToPopup(form);
Comment

PREVIOUS NEXT
Code Example
Javascript :: 11 connection listeners added to [Namespace]. Use emitter.setMaxListeners() to increase limit 
Javascript :: document.elementsFromPoint 
Javascript :: remove image Input of element 
Javascript :: NodeJS: Good way to write Multiple API Calls in serial 
Javascript :: getelementbyid without the <script 
Javascript :: javascript jquery json quiz3 
Javascript :: ProgressBar from color to color 
Javascript :: html and js integrate 
Javascript :: yup password match 
Javascript :: jtml cdn enter 
Javascript :: gsheet business days 
Javascript :: form validation jflutter 
Javascript :: formatDuration js 
Javascript :: how to save js object to clipboard 
Javascript :: loop through json object jquery 
Javascript :: regex not before 
Javascript :: javascript concurrency 
Javascript :: birth day quote 
Javascript :: javascript element.children.forEach not working 
Javascript :: dummy servers using nodejs 
Javascript :: apiview 
Javascript :: Mapping an Array to Elements with v-for 
Javascript :: only integer allowed javascript 
Javascript :: object empty or undefined 
Javascript :: Vuex body skeleton 
Javascript :: how to create image object in javascript 
Javascript :: Handle Race Condition in Node Js using Mutex 
Javascript :: flutter enum to json 
Javascript :: get decimal on number javscri 
Javascript :: formulaire sauvegarde local storage jquery 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =