A prompt box allows the user to enter input by providing a text box.
Is it helpful?
Add CommentView Comments
Ques 47. Can javascript code be broken in different lines?
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 CommentView Comments
Ques 48. To put a "close window" link on a page?
<a href='javascript:window.close()' class='mainnav'> Close </a>
Is it helpful?
Add CommentView Comments
Ques 49. How to hide javascript code from old browsers that dont run it?