window.close in FireFox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sonnich

    window.close in FireFox

    Hi all!

    I have this in IE:

    <input type="button" class="box" value=" Close "
    onClick="window .close();">

    but it does not work in FireFox.
    Can anyone tell me why

    Sonnich

  • Paul Lautman

    #2
    Re: window.close in FireFox

    Sonnich wrote:
    Hi all!
    >
    I have this in IE:
    >
    <input type="button" class="box" value=" Close "
    onClick="window .close();">
    >
    but it does not work in FireFox.
    Can anyone tell me why
    >
    Sonnich
    Did you try Googleing window.close firefox
    I did and found the answer immediately.
    Takes a look at http://www.interwebby.com/blog/2006/02/04/3/
    and there are other hints returned from that google search


    Comment

    • Vincent van Beveren

      #3
      Re: window.close in FireFox

      Paul Lautman wrote:
      Sonnich wrote:
      >Hi all!
      >>
      >I have this in IE:
      >>
      ><input type="button" class="box" value=" Close "
      >onClick="windo w.close();">
      >>
      >but it does not work in FireFox.
      >Can anyone tell me why
      >>
      >Sonnich
      >
      Did you try Googleing window.close firefox
      I did and found the answer immediately.
      Takes a look at http://www.interwebby.com/blog/2006/02/04/3/
      and there are other hints returned from that google search

      Paul,

      Isn't this a security issue? I mean, it should not be possible to close
      a window you didn't open. I find the solution very creative though.

      Vincent

      Comment

      • Paul Lautman

        #4
        Re: window.close in FireFox

        Vincent van Beveren wrote:
        Paul Lautman wrote:
        >Sonnich wrote:
        >>Hi all!
        >>>
        >>I have this in IE:
        >>>
        >><input type="button" class="box" value=" Close "
        >>onClick="wind ow.close();">
        >>>
        >>but it does not work in FireFox.
        >>Can anyone tell me why
        >>>
        >>Sonnich
        >>
        >Did you try Googleing window.close firefox
        >I did and found the answer immediately.
        >Takes a look at http://www.interwebby.com/blog/2006/02/04/3/
        >and there are other hints returned from that google search
        >
        >
        Paul,
        >
        Isn't this a security issue? I mean, it should not be possible to
        close a window you didn't open. I find the solution very creative
        though.
        Vincent
        I don't look after FireFox's security so you're asking the wrong person.


        Comment

        Working...