A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Flash and javascript

  1. #1
    Senior Member Bobby Hill's Avatar
    Join Date
    Feb 2004
    Posts
    243

    Flash and javascript

    I am trying to close a window with the script below and testing it locally. It works fine in IE but does not work in Firefox or Netscape. I have tried it with and without void but it still does not work. Does anyone know what I am doing wrong or is it because I am testing it locally?

    Code:
    closer.onRelease = function(){
    getURL("javascript:window.close(); void(0);");
    };
    Thanks,

    "My boss sits and watches TV in a hot dog suit and I think he might be a moron."

  2. #2
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    You may need to enable javascript in Firefox and Netscape.
    Have a look here:-
    http://www.petermartinconsult.supanet.com/noscript.htm
    If someone tells you it can't be done,
    it's probally because they don't know how.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center