I was in a situation want to load the page after the page contents are loaded I would like to call a function. This was achieved by using $(window).bind().Below example code I will show you how to implement.we should call it inside the $(document).ready()function.
Example:
$(document).ready(function () {
$(window).bind("load", function () {
$("#btnResult").trigger("click");
});
});
Post your comments / questions
Recent Article
- How to make youtube video responsive for website?
- SOLVED-Bootstrap 3 Glyphicons are not working
- Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
- Unable to update the EntitySet 'table' because it has DefiningQuery and no DeleteFunction element exists in the ModificationFunctionMapping
- How to save the web page’s content and save into a string variable in c#?
- The model item passed into the dictionary is of type System.Linq.OrderedEnumerable but this dictionary requires a model item of type System.Collections.Generic.IList
- How to convert http to https Godaddy?
- Event object-event.which
Related Article