Hej
Jeg har fået disse 2 anbefalet, men kan ikke få dem til at virke, er der en fejl i dem.
Jeg har prøvet både med bindesteg på 2 måder "-" og "_" ved sideopsætning.
***************************************************************
Nr. 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD>
<TITLE>[Ingen titel]</TITLE>
<META NAME="Generator" CONTENT="Microsoft FrontPage 4.0">
</HEAD>
<BODY>
<script language="JavaScript" type="text/javascript">
<!-- Start
function CheckPassword() {
var username=document.login.username.value;
var password=document.login.password.value;
location.href = username + "-" + password+'.html';
}
// Slut -->
</script>
</p>
<form name="login" method="post" action="fejl.html" onsubmit="CheckPassword();return false;">
<p><font face="Verdana" size="1"><input type="text" name="username" value="Brugernavn" size="21" onBlur="if(this.value=='')this.value='Brugernavn';" onFocus="if(this.value=='Brugernavn')this.value='';" style="font-family:Verdana; font-size:10; background-color:rgb(231,235,247);"><br>
<input type="text" name="password" value="Password" size="21" onBlur="if(this.value=='')this.value='Password';" onFocus="if(this.value=='Password')this.value='';" class="searchbox" style="font-family:Verdana; font-size:10; background-color:rgb(231,235,247);">
<br>
<br>
<input type="submit" value="Login;" onClick="CheckPassword();return false;" style="font-family:Verdana; font-size:10;"> <input type="reset" name="reset" value="Slet alt" style="font-family:Verdana; font-size:10;"></font></p>
</form>
</BODY>
</HTML>
**************************************************************
Nr. 2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="da" lang="da">
<head>
<title>Skærmopløsning og størrelse på browservinduet</title>
<META NAME="Generator" CONTENT="Microsoft FrontPage 4.0">
</head>
<body>
<script type="text/javascript">
<!-- Dette script og mange flere -->
<!-- findes hos
http://www.html.dk -->
<!-- Start
function CheckPassword() {
var username=document.login.username.value;
var password=document.login.password.value;
location.href = username + password+'.htm';
}
// Slut -->
</script>
<form method="post" action="ingen_javascript.htm"
onsubmit="CheckPassword();return false;" name="login">
<pre>
Username: <input type="text" name="username">
Password: <input type="password" name="password">
</pre>
<input type="submit" value="log på"
onclick="CheckPassword();return false;">
</form>
</body>
</html>