Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/form-submission-target/rel-button-target.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title><form rel> with <button formtarget></title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src=resources/reltester.js></script>
<div id=log></div>
<form action=resources/endpoint.html><input type=hidden name=channelname><button type=submit formtarget=_blank></form>
<script>
const submitter = document.querySelector("button"),
channelInput = document.querySelector("input");
relTester(submitter, channelInput, "<button formtarget>");
</script>