This is caused by outdated JavaScript usage in http://intosanctuary.com/Themes/default/shoutbox.js
Line: 181 & 182
Code:
// any time we set a style, focus at the end
if (!Shoutbox.first) document.getElementById("shoutbox_message").focus(document.getElementById("shoutbox_message").value.length - 1);
The original purpose of this piece of code, as described, was to refocus the chat input and place the cursor at the very end of the text.
The main problem with this piece of code is the usage of .focus( --- ), namely; the wrong kind of data is provided in the place of those ---.
The original coder's intention was to provide the cursor's position through ---, but that isn't how that piece of code works nowadays.
What it does nowadays:
Firefox - It focuses on the chat input, but doesn't move the cursor. It effectively ignores the faulty data.
Edge - It focus on the chat input, but doesn't move the cursor. It effectively ignores the faulty data.
Chrome - It doesn't focus. It is a bit more strict and throws an error stating that the wrong data is being provided for .focus( )
I would personally suggest replacing the above code snippet with the following;
Code:
// any time we set a style, focus at the end
if (!Shoutbox.first) document.getElementById("shoutbox_message").focus();
This should refocus the chat input in all browsers, but it doesn't move the cursor.
3 lines could be added to make the cursor move to the end of the chat input, but I find that this is a counter-intuitive thing to do as it needlessly takes control away from the user.
If you are typing in the middle of a sentence and decide to make your message bold, you'd have to move the cursor back to where you were typing, which is annoying.