+ 2

What do you do in a login form so as when one press submit button,new window is opened

Pressing submit button what code do you write using html or css

7th Nov 2019, 12:24 PM
Yaninyz Witt Mwa😊😊
Yaninyz Witt Mwa😊😊 - avatar
7 ответов
+ 8
<form target="_blank"></form> I think this will open a new window
8th Nov 2019, 5:51 AM
Darcy Dev
Darcy Dev - avatar
+ 1
Use the attribute target="_blank" inside the form element
8th Nov 2019, 5:27 AM
Hayzeed
+ 1
Thanks to all
8th Nov 2019, 8:48 AM
Yaninyz Witt Mwa😊😊
Yaninyz Witt Mwa😊😊 - avatar
0
action=""
7th Nov 2019, 1:01 PM
T1mun
T1mun - avatar
0
You can use: target="_blank" This would open a new tab. Maybe for a login page it's not the best idea to use this but if you want to use it, then why not find it an usage; you could redirect, for example, your 1st tab to a page and the 2nd tab could be another page.
7th Nov 2019, 3:51 PM
Sercalod
Sercalod - avatar
0
I'm not sure what you're trying to say when you say "new window is opened", so I'm assuming you're talking about a blank window. In that case, here's the code for that: <!DOCTYPE html> <html> <head> </head> <body> <input type="submit" value="Submit" onclick="load_blank"> <script> window.open(""); </script> </body> </html>
7th Nov 2019, 8:18 PM
Jianmin Chen
Jianmin Chen - avatar