Skip to content

Instantly share code, notes, and snippets.

@maximilliangeorge
Last active September 29, 2015 15:09
Show Gist options
  • Save maximilliangeorge/2f8bfec5f07af43a6d98 to your computer and use it in GitHub Desktop.
Save maximilliangeorge/2f8bfec5f07af43a6d98 to your computer and use it in GitHub Desktop.
function newPopup1() {
console.log("Popup 1!");
popupWindow = window.open(
'http://www.beckmans.se', // Hemsida 3
'popUpWindow',
height=480,
width=480,
left=0,
top=0,
resizable=no,
scrollbars=no,
toolbar=no,
menubar=no,
location=no,
directories=no,
status=no
);
}
function newPopup2() {
console.log("Popup 2!");
popupWindow = window.open(
'http://www.google.se', // Hemsida 2
'popUpWindow',
height=480,
width=480,
left=0,
top=0,
resizable=no,
scrollbars=no,
toolbar=no,
menubar=no,
location=no,
directories=no,
status=no
);
}
function clickedButton() {
console.log("Clicked button!");
newPopup1();
newPopup2();
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment