Advertisement
matthewpoer

JS Window Controlling

Jun 20th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var json = "test one";
  2. var links = "test two";
  3. var win = window.open();
  4. win.location.href = 'csv_export.php';
  5. win.document.forms[0].data.value = json;
  6. win.document.forms[0].link.value = links;
  7. win.document.forms[0].submit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement