Javascript Accept Box

Panda On Smack

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,030
I need some sort of popup that opens straight away and steals focus when you go to a site that you have to click ok to before you can look at the rest of the site

bit like when you are in hotmail and you click empty folder and a popup opens and you cant do anythign else till you click ok or cancel

anybody know how to do that?

Thanks
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
In Javascript:
Code:
if(confirm("You must be a goat to enter this site")) {
   // Something
}
else { 
   // Something Else 
}

Be aware though that quality browsers with Javascript controls (or browsers without JS at all) could break it. It would work for most though.
 

Panda On Smack

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,030
Ta shovel

i need it steal and keep focus though until something is clicked
 

Panda On Smack

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,030
actually i think shovels thing will work

i was thinking about having a physical html page but having a confirm box steals focus and wont let you do anytign else

ta
 

wyrd_fish

Fledgling Freddie
Joined
Dec 27, 2003
Messages
537
i think the JS box only locks out IE, no other programs, or other IE windows :(

suck it and see
 

Users who are viewing this thread

Top Bottom