I have a function to click a link that takes the url as an attribute of the link and then sends an ajax request to the url and prints the result in a div on the main page. You can read the source at this link -> history.ajax.js
The function is called at the click of a link, the link is essentially formed in this way:
<a onclick="ajaxLoadContent(this)" link="url_a">Link</a>
Unfortunately with webkit function is activated when the page first loads, thus forming errors. Why webkit launches instantly without function if it was not clicked any links?