javascript: get page to go full full screen

Joined
12 Feb 2006
Posts
17,651
Location
Surrey
i have a website im making for college which is a test for whatever i choose. I have the tutorial all working but wondering now if it's possible to get it so when the user starts the test the screen goes full screen, i mean like over take everything leaving nothing but the page they are on and the minimise and exit button at the top right?

i have googled but found nothing. Reason i want this is because i want it so the user can't cheat and look at the tutorial at the same time as taking the test.

thanks
 
also while got this thread open...

i have radio buttons for each possible anwser which names is called radioAnswer. how would i get it so javascript checks if a radio button is selected for radioAnswer?
 
dang ok then. well what about the second problem, getting js to check if any radio button is selected, i have thoughts about ways around it but im sure there is a simple, if anyradioname=checked then blah blah.
 
well i do have a next button but not to the next page showing the next question, but instead it increases the question and answer and then refreshes the function which display the correct stuff.

i have googled and stuggling to find what im after, maybe my wording is bad or something.

im really hoping that there is some keyword that simply checks if the set of radio buttons is selected by using the name of the buttons as an identifier. so something like this:
Code:
if (radioAnswer == null) {
alert("answer the quesiton you spanner");
}

else {
nextQuestion();
}


somethinh along those lines but everything i try doesn't work :(
 
dang it didn't work, googled the code aswell and got a few other methods to try but none worked so i think it's to do with my wonderful code.

if think what im going to have to do instead is make it so the next button is greyed out and doesn't work until the user chooses a button which will call a function to make the next button useable again.
 
Back
Top Bottom