irt.org Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt

Q1545 Is it possible to have the close, minimize and maximize functions replaced by clickable images that do the same thing inside a page?

You are here: irt.org | FAQ | JavaScript | Window | Q1545 [ previous next ]

Close:

<a href="javascript:;" onClick="window.close()"><img src="close.gif"></a>

Fake Minimize:

<a href="javascript:;" onClick="window.blur()"><img src="min.gif"></a>

Fake Maximise:

<a href="javascript:;"
onClick="window.moveTo(0,0);
window.resizeTo(window.screen.availWidth,window.screen.availHeight); return false"><img
src="max.gif"></a>

For all three links you need to replace window with top if your are inside frames.

The third link is Internet Explorer 4+ and Netscape Navigator 4+ only.

Feedback on 'Q1545 Is it possible to have the close, minimize and maximize functions replaced by clickable images that do the same thing inside a page?'

©2013 Martin Webb

ArticlesFAQsGamesFeedback

FOLDOCRFCsInstant JavaScriptSoftwareBooksJavaScript Programmer's ReferenceAboutTop