A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: close.window() [URGENT]

  1. #1
    Flash Incompetent ChaseNYC's Avatar
    Join Date
    Jun 2002
    Location
    new york city
    Posts
    693

    close.window()

    sorry I know those URGENT thingies are annoying but a client is trying to get something out in the next half hour and I cannot get close.window to work for IExplorer. The client says they get a message asking if they want to close then window, then upon clicking yes nothing happens. I have tried a simple:
    Code:
    <a href="javascript:window.close();">Close window</a>
    as well as:
    Code:
    function TimeoutCloseWindow2()
    {
    	window.setTimeout("window.close()", 1);
    }
    function DirectCloseWindow()
    {
    	window.close();
    }
    with the following link code:
    Code:
    <a href="javascript:TimeoutCloseWindow2();">Close window</a>
    <a href="javascript:DirectCloseWindow();">Close window</a>
    none of these work according to my client. Please help!

    EDIT: SORRY, just noticed my client had edited some of the code in frontpage and put in the following code...
    Code:
    <base target="_blank">
    *shoots my client*

    EDIT 2: I guess you can delete this post or lock it, but it can serve for reference if anyone is looking for how to close an IE window, lol...
    Last edited by ChaseNYC; 01-22-2007 at 03:53 PM.
    mmm signature

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