|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm running a quiz, which people can add to their own web pages by installing some code shown below. This works perfectly and opens a new window, sized 500 x 400 with no menus or scrollbars, and the right mouse button is disabled. This stops people going "Back" on their browsers when they get a question wrong.
The problem is that if they just copy the URL from within the code and paste it into their browsers, something like, http://www.planetquiz.co.uk/catpage.shtml They get the page full screen and can start taking the quiz, and simply hit the "Back" button on their browsers if they get a question wrong. Is there anyway of either, stopping people going back by doing something like removing the items from the history ?? Or when the quiz loads, checking if the window has toolbars etc and throwing an error message if it has ?? <script language="JavaScript"><!-- function myopen(filename,windowname,properties) { mywindow = window.open(filename,windowname,properties); } //--></script> <a href="javascript:myopen('http://www.planetquiz.co.uk/catpage.shtml','Quiz','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resi zable=no,copyhistory=no,wid th=500,height=400,top=20,left=150')"> <IMG SRC="http://www.planetquiz.co.uk/logos/logo2.gif" border=0 hspace=0 vspace=0></A> |
|
#2
|
|||
|
|||
|
Yes, it seems that you can test the properties:
self.menubar.visible self.toolbar.visible self.locationbar.visible etc... for true of false. See http://developer.netscape.com You can go to a URL w/o generating history by using the Location.replace method. I don't think you can delete items from the history array, though. Success, Ton Success, Ton |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Window Status |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|