Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
javascript onresize not working
Ashutosh Tripathi
Aug 30 2015 8:30 AM
427
Reply
i am using
window.onresize
to fire some code which is not working due to some other code, i am unable to understand the meaning of other code to make required changes. I am providing both codes below:
My code which i want to execute
$(document).ready(function () {
if ($(window).width() > 1127) {
window.location = "http://www.24caratevent.com";
}
window.onresize = function (event) {
if ($(window).width() > 1127) {
window.location = "http://www.24caratevent.com";
}
};
});
Another code which create problem is:
$(document).ready(function(){
window.addEventListener('load', function() {
FastClick.attach(document.body);
}, false);
});
I have to merge my code into this code, so that the working of both will not get affected, and they both run in my project.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
I want to zoom image in browser using cursor
Rotate Multiple Images to 90 Degrees and save them.