HI,
Erkennt hier jemand einen Syntax Fehler?
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>New Document</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
function gross() {
var wert = this.style.width;
var jetzt = wert.replace(/px/g, '');
var weiter = Number(jetzt) + Number(100)
this.style.width = weiter + 'px';
}
</script>
</head>
<body>
<form name="form">
<input type="text" style="width: 100px; " name="input" onfocus="gross()" />
</form>
</body>
</html>
Gruß