Solved

Disable address bar, back and next buttons of IE browser.

Posted on 2004-10-26
454 Views
Last Modified: 2009-12-16
Hello,

 I have created a web site for examiniation,
 When a user click on start exam, a new window opens using window.open method ( no address  bar, back buttons etc.)  but many users has popup window disabled on their machines so they unable to appear for exam.

 Now to overcome this, I have opened  exam screen using response.Redirect method, but this new IE window opens with  back button, next button and address bar.

 My problem is how to disable this address bar, back button and next button.

 If any one having suggestions for this problem, please help us, it is urgent.

 Thanks & Regards,
 dAshish.
 
0
Question by:dashish
    7 Comments
     
    LVL 13

    Accepted Solution

    by:
    The only way to remove address bars, menus, scrollbars, etc. is by using the window.open() event, and even that is not 100% foolproof, as you will likely run into some trouble wint Win XP SP 2.  Your best bet is to display a message to users telling them to disable popup blockers while they take your test.
    0
     
    LVL 15

    Expert Comment

    by:justinbillig
    <!-- No Points -->

    cLFlaVA is right.

    You can never fully remove the options for the use to go back and stuff. You can open your window in fullscreen ( fullscreen=yes ), but that is IE only and users can still go back.

    You can use window.showModalDialog( ) to open a new window and this will open a window that the user must interact with.

    clFlava i have a question. Does SP2 block all popups or just unrequested ones?
    0
     
    LVL 13

    Expert Comment

    by:cLFlaVA
    lol, cute jb :)

    I'm not sure, my employer has refused to allow us to install SP2 until they're done with our own in-house usability testing.  I believe their popup blocking is simlar to FireFox's : unrequested popups.

    I may be wrong though.
    0
     
    LVL 5

    Expert Comment

    by:mrielf
    I think hidding BACK button isn't full solution, because backspace works even if back button isn't displayed.

    If you want totaly secure application then you must write your own java Client/Server application (or something similar)
    0
     
    LVL 13

    Expert Comment

    by:cLFlaVA
    yeah, along with BACK button, you'd need to disable right click > back, Ctrl + left arrow, the menu bar (Go > Back), special mouse buttons, etc.
    0
     
    LVL 13

    Expert Comment

    by:StormyWaters
    Also mouse gestures in Mozilla browsers, etc.
    0
     
    LVL 31

    Expert Comment

    by:GwynforWeb
    Use a Modeless dialog

    <script>
      var win = window.showModelessDialog("modalExam.htm",null,"dialogWidth=700px;dialogHeight=600px")
    </script>

    then in the page modalExam.htm have

    <iframe src='Exam1.htm' height=100% width=100%></iframe>

    which is an iframe containing the first page Exam1.htm of the exam. The iframe allows you to navigate to the other exam pages.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Title # Comments Views Activity
    Bootstrap Accordian 9 76
    Reloading a Data Table 10 32
    JS error 10 17
    Forcing form refresh - classic ASP 7 18
    Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
    I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now