Dit script wacht 1 milliseconde en springt dan naar http://www.nieuwelocatie.nl.
De wachttijd (aangegeven met een rood cijfer) kan veranderd worden naar bijvoorbeeld 1000 milliseconden.
Alleen het copieren van dit script zal het zaakje niet aan het rollen krijgen. Op de een of andere manier moeten we het script activeren. We doen dit door aan het event ("gebeurtenis") OnLoad, de functie "autochange()" toe te voegen.
Dit dient in de tag gedaan te worden zoals hieronder weergegeven wordt:
In dit voorbeeld vertel ik de tag, bij het laden van de pagina (OnLoad) de procedure "autochange" uit te voeren.
Een volledige HTML pagina zou er zo uit kunnen zien:
LOADING.....
- Home
- Apps
- Books>
- Educational>
- Educational 1
- Educational 2
- Educational 3
- Educational 4
- Educational 5
- Educational 6
- Educational 7
- Educational 8
- Educational 9
- Educational 10
- Educational 11
- Educational 12
- Educational 13
- Educational 14
- Educational 15
- Educational 16
- Educational 17
- Educational 18
- Educational 19
- Educational 20
- Educational 21
- Educational 22
- Educational 23
- Educational 24
- Educational 25
- Games>
- Apps for parents
- Special (needs) apps
- Family games>
- Top 50 (app store)
- News
- Explanation star ratings
- Tips
- Developers
- Contact