2014-04-08 21:28:16 +00: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-22 02:16:52 +00:00
|
|
|
window.open('/popup_one', 'timeoutPopup');
|
2014-04-09 08:22:17 +00:00
|
|
|
}, 600);
|
2014-04-08 21:28:16 +00:00
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2014-08-24 11:54:40 +00:00
|
|
|
$('#openWindowWithLongerTimeout').click(function(){
|
|
|
|
setTimeout(function(){
|
2015-07-22 02:16:52 +00:00
|
|
|
window.open('/popup_one', 'longerTimeoutPopup');
|
2014-08-24 11:54:40 +00:00
|
|
|
}, 1400);
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2014-04-08 21:28:16 +00:00
|
|
|
$('#openTwoWindows').click(function() {
|
|
|
|
window.open('/popup_one', 'firstPopup');
|
|
|
|
window.open('/popup_two', 'secondPopup');
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<button id="openWindow">Open new window</button>
|
|
|
|
|
|
|
|
<button id="openWindowWithTimeout">Open new window with timeout</button>
|
|
|
|
|
2014-08-24 11:54:40 +00:00
|
|
|
<button id="openWindowWithLongerTimeout">Open new window with longer timeout</button>
|
|
|
|
|
2014-04-08 21:28:16 +00:00
|
|
|
<button id="openTwoWindows">Open two windows</button>
|
|
|
|
|
|
|
|
<button id="doesNotOpenWindows">Does not open windows</button>
|
|
|
|
|
|
|
|
<iframe src="/frame_one" id="frameOne"></iframe>
|
|
|
|
</body>
|
|
|
|
</html>
|