1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2024-12-04 09:26:52 +02:00
CEF4Delphi/bin/PopupBrowser.html

22 lines
625 B
HTML

<!DOCTYPE html>
<html>
<body>
<p>The following button opens google.com in a popup window.</p>
<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/>
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=500,width=700');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
</body>
</html>