[thelist] JS - Close Window & Open a New Window

Mark Howells webdev at mountain.ch
Tue Aug 20 07:44:01 CDT 2002


> <a class="mailbody"
> href="javascript:popUp('http://www.campusrag.com')&parent.window.close()"
> title="Click Here To Relogin">Click Here To Relogin</a>

1. Don't use javascript: as an HREF value.

Links & JavaScript Living Together in Harmony
<http://www.evolt.org/article/mhowells/17/20938/index.html>

2. Try top.window.close() -- you can't apply window.close() to a frameset
that isn't at the top of the object tree.

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list