MCQs > IT & Programming > JQuery > Which will make the background of a page change, upon being refreshed?

JQuery MCQs

Which of the following will make the background of a page change, upon being refreshed?

Answer

Correct Answer: $(document).ready(function() { var totalCount = 2; var num = Math.ceil( Math.random() * totalCount ); document.body.background = 'assets/background-'+num+'.jpg'; });

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it