Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Window | Q1545 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.