Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get response from window.open

function openWindowPopup(url, windowname, w, h, x, y) {
	return window.open(url, windowname, "resizable=no, toolbar=no, scrollbars=no, menubar=no, status=no, directories=no, width=" + w + ", height=" + h + ", left=" + x + ", top=" + y);
}

let Popup = openWindowPopup('url', 'Title', 500, 600, 500, 500 );
Popup.addEventListener('load', () => {
  console.log(Popup.document.body.innerHTML);
  // or
  console.log(Popup.document.body.innerText);
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to copy all elements in an array except for the first one in javascript 
Javascript :: scroll to top vue 
Javascript :: automated counter with react hooks 
Javascript :: how to define cardTitle background image in mdl in reactjs 
Javascript :: router.push next js 
Javascript :: sequelize findall 2 attributes 
Javascript :: js not not 
Javascript :: jquery async await $.getScript( 
Javascript :: pass object in asyncstorage in react native 
Javascript :: array destructuring by using spread operator from a nested object in javascript 
Javascript :: setTimeout() nodejs 
Javascript :: sort method js 
Javascript :: script defer attribute 
Javascript :: mongoose add document 
Javascript :: shopify api for add to cart 
Javascript :: mongoose search query for a word in a field 
Javascript :: area selection on image using javascript 
Javascript :: to do list app react code 
Javascript :: react-multi-carousel infinite loop causing issue 
Javascript :: sequelize update index column 
Javascript :: how to convert json to javascript object 
Javascript :: how to create json file in android programmatically 
Javascript :: add material angular 
Javascript :: preventing form from submitting 
Javascript :: js text match 
Javascript :: Object.create Polyfill 
Javascript :: nodejs module 
Javascript :: javascript url 
Javascript :: lite youtube embed react 
Javascript :: react native layout animation android 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =