Implement Same-Site cookies
[WebKit-https.git] / LayoutTests / http / tests / cookies / same-site / resources / click-hyperlink.php
1 <!DOCTYPE>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6     testRunner.waitUntilDone();
7 </script>
8 </head>
9 <body>
10 <?php
11     $targetAttribute = "";
12     if (!empty($_GET["target"]))
13         $targetAttribute = 'target="' . $_GET["target"] . '"';
14 ?>
15 <a href="<?php echo $_GET['href']; ?>" <?php echo $targetAttribute; ?>>Click</a>
16 <script>document.querySelector("a").click()</script>
17 </body>
18 </html>