"dovelet" <do*********@yahoo.com.hk> wrote in message
news:e4**************************@posting.google.c om...
Hi all,
I am new in javascript and I hope someone can help me. I would like to
write a web page with 2 frame, left and right. When browse the web
page, it will read a file from the hard disk. The file format is as
follow:
a.html
b.html
c.html
The left hand side will display all these filename. The right hand
side will browse these web pages one by one with loop (i.e. a.html ->
b.html -> c.html -> a.html ...). Can anyone teach me how to do this?
You don't need JavaScript to do that. In the pages that will loop on the
right side, include two lines in the <head> section:
<base target="_self">
<meta http-equiv="refresh" content="1;url=X.html">
where X in the url is "b" for the "a" page, "c" for the "b" page, and "a"
for the "c" page. The "1" calls for a 1-second delay.
It should work for any browser that respects the HTTP-EQUIV meta tag.
Probably not what you are looking for, but I just had to throw that out
there as a possibility.