Como hago para abrir los links en una pestaña nueva?
Publicado por Steven (1 intervención) el 11/04/2020 06:53:01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login para varios usuario</title>
</head>
<body>
<h1>
</h1>
<form name="login">
<table width="200" border="0">
<tr>
<th height="33" scope="row"><h2>Contraseña</h2></th>
<td><span class="cnt">
<input name="password" type="password" class="Input" value="" size="20" />
</span></td>
<td><span class="cnt">
<input value="Entrar" target="_parent" onclick="Login()" type="button" class="boton"/>
</span></td>
</tr>
</table>
</form>
<script language="JavaScript">
function Login(){
var done=0;
var password=document.login.password.value;
if (password=="1234") {
window.location="lnk1.html";
}
if (password=="2345") {
window.location="lnk1.htm2";
}
if (password=="3546") {
window.location="lnk1.htm3";
}
if (password=="4567") {
window.location <a href="lnk1.htm4">;
}
}
</script>
</center>
<script language="Javascript">
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->
</script>
</body>
</html>
Valora esta pregunta
0