Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:[color=blue]
> Is there a way to replace the URL value below, on the fly?
>
> <META HTTP-EQUIV="Refresh"
> CONTENT="3;URL= http://www.some.org/some.html">[/color]
What do you mean with "on the fly"?
And all this inside 3 seconds?
=============== =============== =====
If you want to do it programmaticall y with clientside javascript, you
better use javascript all along:
"Evertjan." wrote:
[color=blue]
> Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:[color=green]
> > Is there a way to replace the URL value below, on the fly?
> >
> > <META HTTP-EQUIV="Refresh"
> > CONTENT="3;URL= http://www.some.org/some.html">[/color]
>
> What do you mean with "on the fly"?
>
> And all this inside 3 seconds?
>
> =============== =============== =====
>
> If you want to do it programmaticall y with clientside javascript, you
> better use javascript all along:
>
> <script type='text/javascript'>
>
> myNewLocation = 'http://www.some.org/some.html'
>
> setTimeout("loc ation.href = myNewLocation", 3000)
>
> <script>
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)[/color]
Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:
[color=blue]
> "Evertjan." wrote:
>[color=green]
>> Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:[color=darkred]
>> > Is there a way to replace the URL value below, on the fly?
>> >
>> > <META HTTP-EQUIV="Refresh"
>> > CONTENT="3;URL= http://www.some.org/some.html">[/color]
>>
>> What do you mean with "on the fly"?[/color][/color]
[color=blue]
> Programatically .[/color]
[color=blue][color=green]
>> And all this inside 3 seconds?
>>
>> =============== =============== =====
>>
>> If you want to do it programmaticall y with clientside javascript, you
>> better use javascript all along:
>>
>> <script type='text/javascript'>
>>
>> myNewLocation = 'http://www.some.org/some.html'
>>
>> setTimeout("loc ation.href = myNewLocation", 3000)
>>
>> <script>[/color][/color]
So what do you think of the above, Marcia?
Or do you want the user to press a button to change the destination
inside those 3 seconds?
Evertjan. wrote:
[color=blue]
> Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:
>
>[color=green]
>>"Evertjan." wrote:
>>
>>[color=darkred]
>>>Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:
>>>
>>>>Is there a way to replace the URL value below, on the fly?
>>>>
>>>><META HTTP-EQUIV="Refresh"
>>>>CONTENT="3; URL=http://www.some.org/some.html">
>>>
>>>What do you mean with "on the fly"?[/color][/color]
>
>[color=green]
>>Programatical ly.[/color]
>
>[color=green][color=darkred]
>>>And all this inside 3 seconds?
>>>
>>>============ =============== ========
>>>
>>>If you want to do it programmaticall y with clientside javascript, you
>>>better use javascript all along:
>>>
>>><script type='text/javascript'>
>>>
>>> myNewLocation = 'http://www.some.org/some.html'
>>>
>>> setTimeout("loc ation.href = myNewLocation", 3000)
>>>
>>><script>[/color][/color]
>
>
> So what do you think of the above, Marcia?
>
> Or do you want the user to press a button to change the destination
> inside those 3 seconds?
>
> Or depending on the time of day?
>
> <script type='text/javascript'>
>
> t = new Date()
>
> myNewLocation = (t.hours()<12)[/color]
Comment