Basic JavaScript Question:
Download Questions PDF

To put a "close window" link on a page?

Answer:

<a href='javascript:window.close()' class='anyCSSClass'> Close </a>

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
What looping structures are there in JavaScript? How to hide JavaScript code from old browsers that don't run it?