[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrolling the browser




On Tue, 9 Jan 1996, Doug Holton wrote:

> > Does anyone know a way to cause the netscape browser to scroll?  I have 
> > an nph-cgiscript that sends a fairly continuous stream of data down 
> > to the browser, and I would like the browser to scroll automatically as 
> > new data comes in.
> 
> The only way I can think of is to use location.hash
> 
> Before each piece of data come in, document.write an <a name="..."></a>
> location.hash can then be called to jump to the specified name tag
> (just like linking to http://.../your.document.html#name.of.tag)

Here's what I'm outputting, but it doesn't scroll the browser.  Am I 
doing something wrong, or could there be a bug in javascript? :

<PRE>
1
<SCRIPT>
document.write("<a name=1></a>")
location.hash = "1"
</SCRIPT>
2
<SCRIPT>
document.write("<a name=2></a>")
location.hash = "2"
</SCRIPT>
3
<SCRIPT>
document.write("<a name=3></a>")
location.hash = "3"
</SCRIPT>


advThanks,
-joe