pass _self to window.open

This commit is contained in:
2023-01-24 20:21:48 -07:00
parent 589e2ca7eb
commit b80b086406

View File

@@ -49,5 +49,5 @@
(method :Void getUserInput [resolve]
(set this.resolve resolve)
(+= content "<br /><input type=\"text\" id=\"value\"><br /><a href=\"#\" onclick=\"window.open('/submit?value=' + document.getElementById('value').value);\">Submit</a><br />"))
(+= content "<br /><input type=\"text\" id=\"value\"><br /><a href=\"/\" onclick=\"window.open('/submit?value=' + document.getElementById('value').value, '_self');\">Submit</a><br />"))