Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>JavaScript-Beispiel</title>
- </head>
- <body>
- <a href="beispiel.html" onclick="return oeffnen(this.href)">
- Pop-up-Fenster öffnen</a>
- <script>
- function oeffnen(url) {
- var fenster = window.open(url, 'f', 'width=500,height=300');
- fenster.focus();
- return false;
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement