john_samuelMedlem sedan apr. 200118 inlägg
har kollat runt här på webforum, men hittar inget som matchar just detta, så jag frågar istället. Hur gör man i javascript för att ändra dokumentets titel? har testat med
<script language="javascript">
<!--
document.title="hejsan";
// eller med paranteser, och så
//-->
</script>
men det fungerar inte. Någon som vet?
------------------
There is always
something more to do
JohnsenMedlem sedan juli 2000718 inlägg
Hej!
Har inte testat detta i annat än IE5, men där funkar det. Skall prova lite andra läsare i morgon.
<html>
<title>Titel</title>
<head>
<script language="JavaScript">
function andra(){
document.title="Ny titel";
}
</script>
</head>
<body>
<a href="javascript:andra();">klicka</a>
</body>
</html>
------------------
- J-O-H-N-S-E-N -
------------------
john_samuelMedlem sedan apr. 200118 inlägg
okaj, tackar så mycket. skall kolla ifall det funkar i netscape... i explorer funkar ju det mesta... men men, tack så mycket iaf!
------------------
There is always
something more to do
JohnsenMedlem sedan juli 2000718 inlägg
Fick det inte att funka i NN4+, men i NS6 funkar det utan problem.
------------------
- J-O-H-N-S-E-N -
------------------
spangoMedlem sedan juni 20006 147 inlägg
Har du frames kan det ställa till det. Lägg då till top. framför...
top.document.title = "parp";
------------------
These are the cries of the carrots, the cries of the carrots! You see, Reverend Maynard, tomorrow is harvest day and to them it is the holocaust.