I have a button that opens a TXT file in a new window. Is there a way to automatically go to the very bottom of that page using javascript or php? Or to any particular location (like searching for a string)? Because it is a TXT file, there are no anchors.
Here's my button's onclick:
onclick="window.open('comments.txt','_comments').focus();"
I have looked into adding this to the onclick (but it did not work):
w.scrollTo(0,150);