+ 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
6 Antworten
+ 8
<form target="_blank"></form>
I think this will open a new window
+ 1
Use the attribute target="_blank" inside the form element
+ 1
Thanks to all
0
action=""
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.
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>