Click to See Complete Forum and Search --> : deny.


DanUK
07-10-2003, 10:37 AM
hello again!
I'm very sorry to post again, i'm full of questions right now :)
I know that my website doesn't work with Opera .. is there a way to 'deny' any Opera user with a page that says 'Your browser is not compatible' ?
The site looks utterly wrong in Opera, so I wanted to put an unsupported page. How is this achieved? thanks.

freefall
07-10-2003, 10:41 AM
something like this, I believe:

if (navigator.appName.indexOf("Opera") != -1)
window.location.href = "operablocked.html"


- Ian

DanUK
07-10-2003, 10:43 AM
ahhh okay thanks! great
I presume that's a script?

I.e.

<script language="JavaScript">
<!--
if (navigator.appName.indexOf("Opera") != -1)
window.location.href = "operablocked.html"
// -->
</script>

or not? :\ sorry.

freefall
07-10-2003, 10:49 AM
yeah, sorry, I was going to put those in but decided to be lazy =)

- Ian

DanUK
07-10-2003, 10:54 AM
thanks for the help :D

DanUK
07-10-2003, 12:17 PM
woohoo works, great!
I see that a lot of Opera browsers have wrong ID for this point, that so many websites deny them .. but until I fix the issue with opera, it's best to deny politely then get them looking at the wrong site!

DanUK
07-10-2003, 12:18 PM
thanks again.

Charles
07-10-2003, 12:40 PM
Wouldn't it be easier to make a web page that didn't suck? One that worked on all browsers?