Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

JavaScript Interview Questions and Answers

Ques 46. What is a prompt box?

Ans. A prompt box allows the user to enter input by providing a text box.

Is it helpful? Add Comment View Comments
Ques 47. Can javascript code be broken in different lines?
Ans. Breaking is possible within a string statement by using a backslash \\ at the end but not within any other javascript statement.
that is ,
document.write(\"Hello \\ world\");
is possible but not document.write \\
(\"hello world\");
Is it helpful? Add Comment View Comments
Ques 48. To put a \"close window\" link on a page?
Ans. <a href=\'javascript:window.close()\' class=\'mainnav\'> Close </a>
Is it helpful? Add Comment View Comments
Ques 49. How to hide javascript code from old browsers that dont run it?
Ans. Use the below specified style of comments
©2018 WithoutBook