|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using Java to detect frames
is there any way of using Java to dectect if a person is using frames set up or a non frame set up?
|
|
#2
|
||||
|
||||
|
here is how you could do it in javascript:
<script language="JavaScript"><!-- if (frames.length > 0) alert('We have frames'); else alert('We have no frames') //--></script> |
|
#3
|
|||
|
|||
|
Ok here is another question, is there any way of having a variaible called usesframes = yes if they r using frames or usesframes = no if they r not so that I can use another script langague to decided what to do on depending on what the user is using.
|
|
#4
|
||||
|
||||
|
ya, just say
variablename = "yes" or variablename = "no" then you could have some redirect or something to your script if the variable it equal to a certain value |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Using Java to detect frames |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|