'Pointing a domain name [closed]

I've just pointed a domain name (www.MyNewDomainName.com) to a website (www.blabla.com/something). The problem is that if I enter the website from www.MyNewDomain.com the event listeners written in JavaScript (pressing some keys on the keyboard) do not work until I press on the screen with mouse or press tab key. On the contrary entering site from www.blabla.com/something everything works immediately. How can I fixed it?



Solution 1:[1]

Since you didn't post any specifics, I would say try setting the focus of a field or simulate a click event onload, If you are using JQuery something like:

$(document).ready(function(){
    $('body').click();
});

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Michaeldcooney