Neues Problem:
wenn ich nun das ganze im IE ausprobiere funktionierts alles prima beim ersten durchgang, will ich dann eine weitere abfrage starten, dann bekomme ich die fehlermeldung: "formular.rush ist null oder kein objekt"
was ist falsch, wie schaffe ich es dass das "unendlich" funktioniert?
hier ist nochmal der quellcode:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" xmlns = "http://www.w3.org/1999/xhtml" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Unbenanntes Dokument</title>
<script type="text/javascript">
function wikipedia()
{
var rush = document.formular.rush;
formular.rush.name = "search";
document.formular.action="http://de.wikipedia.org/wiki/";
document.formular.submit();
}
function youtube()
{
var rush = document.formular.rush;
formular.rush.name = "search_query";
document.formular.action="http://youtube.com/results?search_type=&;aq=f";
document.formular.submit();
}
function google()
{
var rush = document.formular.rush;
formular.rush.name="q"
document.formular.action="http://www.google.de/search?hl=de&;q=&;meta";
document.formular.submit();
}
</script>
</head>
<body>
<form name="formular" action="" method="get" target="_blank">
<input name="rush" type="text" size="50" maxlength="255">
<input type="button" value="Google" onclick="google()"/>
<input type="button" value="Wikipedia" onclick="wikipedia()"/>
<input type="button" value="Youtube" onclick="youtube()"/>
</form>
</body>
</html>