First, you should know that such a behaviour can mean that your webpage is infected by malware. Take care of this.
Second, you can try to open file
user.js from your profile and add there the next string
user_pref("network.http.prompt-temp-redirect", false);
Save it (in UTF-8). Restart K-Meleon. Remember the First.
Edited 1 time(s). Last edit at 06/29/2016 08:01PM by rodocop.