I am trying to make a chatting room, and it is doing okay. However the display message box, which is an iframe that connects an other php page, doesn't scroll down when the iframe refresh. How can I make the iframe scrollbar scroll down by itself to the bottom when everytime the iframe refresh? Perhaps I need to use javascript, but I am not familiar with it.
easiest way is to quickly focus() and blur() something.. at least that's how I set it.. you could alternately use the hash as the refresh.. set the anchor like so:
I think u misunderstand what I was saying. From the begining till the end it has just one window. I want to scroll the <iframe> scrollbar down to the buttom everytime when it refreshes, but how?
sorry...finally get wat u are saying. But I still got a one big problem...after reload that page with that link, it wouldn't refresh anymore any suggestion? Thx.
The code above is the webpage that is <iframe>ed in another main page. I had been trying to use scrollTo(x, y) method in Javascript, but it doesn't work pretty well. It just stuck in 1/4 way down.