2017-01-26 19:10:51 -05:00
|
|
|
|
2014-04-08 17:28:16 -04:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>With Windows</title>
|
|
|
|
<script src="/jquery.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('#openWindow').click(function(){
|
|
|
|
window.open('/popup_one', 'firstPopup');
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#openWindowWithTimeout').click(function(){
|
|
|
|
setTimeout(function(){
|
2015-07-21 22:16:52 -04:00
|
|
|
window.open('/popup_one', 'timeoutPopup');
|
2014-04-09 04:22:17 -04:00
|
|
|
}, 600);
|
2014-04-08 17:28:16 -04:00
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2014-08-24 07:54:40 -04:00
|
|
|
$('#openWindowWithLongerTimeout').click(function(){
|
|
|
|
setTimeout(function(){
|
2015-07-21 22:16:52 -04:00
|
|
|
window.open('/popup_one', 'longerTimeoutPopup');
|
2014-08-24 07:54:40 -04:00
|
|
|
}, 1400);
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2014-04-08 17:28:16 -04:00
|
|
|
$('#openTwoWindows').click(function() {
|
|
|
|
window.open('/popup_one', 'firstPopup');
|
|
|
|
window.open('/popup_two', 'secondPopup');
|
|
|
|
return false;
|
|
|
|
});
|
2016-07-27 18:09:25 -04:00
|
|
|
|
|
|
|
$('body').addClass('loaded');
|
2014-04-08 17:28:16 -04:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<button id="openWindow">Open new window</button>
|
|
|
|
|
|
|
|
<button id="openWindowWithTimeout">Open new window with timeout</button>
|
|
|
|
|
2014-08-24 07:54:40 -04:00
|
|
|
<button id="openWindowWithLongerTimeout">Open new window with longer timeout</button>
|
|
|
|
|
2014-04-08 17:28:16 -04:00
|
|
|
<button id="openTwoWindows">Open two windows</button>
|
|
|
|
|
|
|
|
<button id="doesNotOpenWindows">Does not open windows</button>
|
|
|
|
|
|
|
|
<iframe src="/frame_one" id="frameOne"></iframe>
|
2017-06-22 20:21:24 -04:00
|
|
|
|
|
|
|
<div id="scope">
|
|
|
|
<span>My scoped content</span>
|
|
|
|
</div>
|
2014-04-08 17:28:16 -04:00
|
|
|
</body>
|
|
|
|
</html>
|