+ Post New Thread
Results 1 to 3 of 3
How do you do....it? Thread, HTML Coding: ‘Do You Want To Close This Window?’ in Technical; We use ISA to block specific websites. When ISA blocks a website it redirects the student to a HTML file ...
  1. #1

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,911
    Thank Post
    351
    Thanked 1,291 Times in 882 Posts
    Blog Entries
    4
    Rep Power
    1129

    HTML Coding: ‘Do You Want To Close This Window?’

    We use ISA to block specific websites. When ISA blocks a website it redirects the student to a HTML file which in turn redirects the user to another file which displays to the student what has just happened and why the page was blocked. The page the user is first redirected to is closed.

    Here is the code for the first page:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <script language="javascript">
    function tidy() {
    window.open("PageToBeLoaded.htm","Page_Access_Deni ed","width=1019,height=750,scrollbars=0,status=no, resizable=no,toolbar=no,menubar=no,top=0,left=0");
    window.opener=top;
    window.close();
    }
    </script>
    </head>
    <body onload="tidy();">
    </html>

    Where ‘PageToBeLoaded.HTM’ is the page which contains the details explaining the recent events to the student.

    This worked very well until we deployed IE7. Now Internet Explorer insists on showing a dialog box [see attached picture]

    My question is this: Is there any way of adjusting the code shown above to prevent the dialog being shown?

    Any ideas welcome. Thanks.
    Attached Images Attached Images

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Not in your HTML. This is a property of IExplore, I don't know if it can be disabled (I suspect not, because it's a "safety measure" )

  3. #3

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65

SHARE:
+ Post New Thread

Similar Threads

  1. Code to close an application.
    By FN-GM in forum Scripts
    Replies: 1
    Last Post: 11th June 2008, 05:44 PM
  2. Replies: 3
    Last Post: 10th April 2008, 09:39 AM
  3. Need some Coding
    By russdev in forum Web Development
    Replies: 5
    Last Post: 11th November 2006, 10:49 PM
  4. Windows Mobile Coding
    By plexer in forum Coding
    Replies: 4
    Last Post: 24th June 2006, 07:55 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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