hankknight
asked on
jQuery: Combine document ready and window resize functions
$(document).ready(function() {
alert('Document Loaded or Window Resized')
});
$(window).resize(function () {
alert('Document Loaded or Window Resized')
});
Is there a good way to combine these two functions into one function? Something like this?
$(document).ready.OR.$(window).resize (function() {
alert('Document Loaded or Window Resized')
});
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window