How do I close a browser window if there is no history?
How do I close a browser window if there is no history?
| Answer | function historyBack()
{
if (history.length)
history.back()
else
window.close()
} |
| Attachments | -none- |
| Applies to versions | |
| FAQ Provided By | Steven Charles Robinson |
| Credit | |
 |  |
|
|