From bf4c9a4b97e6ccb5239d950d87788f048049ec12 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 5 Aug 2019 13:39:04 +0200 Subject: [PATCH] Add window.open test --- app.py | 5 +++++ templates/root.html | 1 + templates/windowopen.html | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 templates/windowopen.html diff --git a/app.py b/app.py index 4a78f04..05e3b29 100644 --- a/app.py +++ b/app.py @@ -23,6 +23,11 @@ def location_replace_page(): return f.render_template("locationreplace.html") +@app.route("/window/open") +def window_open_page(): + return f.render_template("windowopen.html") + + @app.route('/referer') def referer_page(): referer = f.request.headers.get("Referer") diff --git a/templates/root.html b/templates/root.html index c5532a3..5e88ef1 100644 --- a/templates/root.html +++ b/templates/root.html @@ -12,6 +12,7 @@
  • Simple link
  • location.href
  • location.replace()
  • +
  • window.open()
  • \ No newline at end of file diff --git a/templates/windowopen.html b/templates/windowopen.html new file mode 100644 index 0000000..f2e49a2 --- /dev/null +++ b/templates/windowopen.html @@ -0,0 +1,15 @@ + + + + + location.href + + + + + + \ No newline at end of file