Web Analytics Made Easy -
StatCounter Window closing and opening - CodingForum

Announcement

Collapse
No announcement yet.

Window closing and opening

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Window closing and opening

    Hi

    I am trying to close a frameset window, and open another file in a new window. I am using the following function which does not seem to work:

    <script language="javascript">

    function backpalette() {
    window.top.close();
    window.open('../entry');
    }
    </script>

    It is called by

    href="javascript:backpalette()"Close frame"

    What am I doing wrong?

    bye
    Allyson

  • #2
    try switching the commands around.

    function backpalette() {
    window.open('../entry');
    window.top.close();
    }
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

    Comment


    • #3
      Hi

      I am still having problems with this script. I know it's a simple problem, but I just can't find the solution. When the user clicks on the arrow, the frameset should close, and entry.htm should be loaded. Have a look at the website so far, http://homepages.ihug.co.nz/~usateden/panacea/frameset/


      <script language="javascript">

      function back() {
      window.open('../entry.htm');
      window.top.close();
      }
      </script>
      </head>

      <body background="bg.GIF" bgproperties="fixed">
      <div align="right">

      <table border="0" cellpadding="0" width="90%">
      <tr>
      <td width="100%"><p align="left"><a href="javascript:back();"><img src="backarrow.gif"


      Can anyone help with this please?

      bye
      Allyson
      allyson
      New to the CF scene
      Last edited by allyson; Jun 30, 2002, 10:13 PM.

      Comment

      Working...
      X