2018-02-18 22:22:10 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<p>The following button opens google.com in a popup window.</p>
|
2019-11-26 11:59:04 +02:00
|
|
|
<button onclick="return popitup('https://www.google.com')">Click me to open Google</button><br/><br/>
|
|
|
|
<button onclick="return popitup('about:blank')">Click me to open blank</button><br/><br/>
|
|
|
|
<button onclick="return popitup('file:///PopupBrowser.html')">Click me to open a file</button><br/><br/>
|
2021-04-22 09:38:35 +02:00
|
|
|
<button onclick="return popitup('https://www.w3schools.com/HTML/html5_draganddrop.asp')">Click me to open a drag and drop example</button><br/><br/>
|
|
|
|
<button onclick="return popitup('https://code-boxx.com/simple-drag-and-drop-file-upload/')">Click me to open a drop file example</button><br/><br/>
|
2018-02-18 22:22:10 +02:00
|
|
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
<!--
|
|
|
|
function popitup(url) {
|
2021-04-22 10:01:13 +02:00
|
|
|
newwindow=window.open(url,'name' + Math.floor(Date.now() / 1000),'height=500,width=700');
|
2018-02-18 22:22:10 +02:00
|
|
|
if (window.focus) {newwindow.focus()}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -->
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|