Click here to Skip to main content
16,007,163 members
Home / Discussions / Web Development
   

Web Development

 
Questionjavascript click button Pin
eggsovereasy19-Jan-07 4:11
eggsovereasy19-Jan-07 4:11 
AnswerRe: javascript click button Pin
Guffa19-Jan-07 7:09
Guffa19-Jan-07 7:09 
GeneralRe: javascript click button Pin
eggsovereasy19-Jan-07 10:36
eggsovereasy19-Jan-07 10:36 
AnswerRe: javascript click button Pin
Guffa19-Jan-07 12:16
Guffa19-Jan-07 12:16 
AnswerRe: javascript click button Pin
RichardGrimmer20-Jan-07 5:42
RichardGrimmer20-Jan-07 5:42 
AnswerRe: tap control Pin
Christian Graus18-Jan-07 22:03
protectorChristian Graus18-Jan-07 22:03 
JokeRe: tap control Pin
DavidNohejl18-Jan-07 23:26
DavidNohejl18-Jan-07 23:26 
QuestionDisable Right Click, Problem Javascript Code Pin
varshavmane18-Jan-07 18:11
varshavmane18-Jan-07 18:11 
Hi All,

I have to disable right of the Browser.I got the script on net and use that but when I include it in .js file my application doesnot work it shows login screen where right click is disable but when I click login but it doesnt go inside the main page.

Can anyone tell me what is the problem in the script.
Following is the script:

var message="Function Disabled!";
function clickIE4()
{
if (event.button==2)
{
alert(message);
return false;
}
}
function clickNS4(e)
{
if (document.layers||document.getElementById&&!document.all)
{
if (e.which==2||e.which==3)
{
alert(message);
return false;
}
}
}

if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById)
{
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false;")
Thanks in advance.

AnswerRe: Disable Right Click, Problem Javascript Code Pin
Shog919-Jan-07 7:15
sitebuilderShog919-Jan-07 7:15 
QuestionDHTML and DropDownLists Pin
Leo Smith18-Jan-07 15:08
Leo Smith18-Jan-07 15:08 
AnswerRe: DHTML and DropDownLists Pin
Christian Graus18-Jan-07 18:32
protectorChristian Graus18-Jan-07 18:32 
GeneralRe: DHTML and DropDownLists Pin
Leo Smith19-Jan-07 2:33
Leo Smith19-Jan-07 2:33 
GeneralRe: DHTML and DropDownLists Pin
RichardGrimmer19-Jan-07 6:48
RichardGrimmer19-Jan-07 6:48 
GeneralRe: DHTML and DropDownLists Pin
Leo Smith19-Jan-07 9:26
Leo Smith19-Jan-07 9:26 
QuestionFirefox Extensions Pin
Richard Andrew x6418-Jan-07 14:54
professionalRichard Andrew x6418-Jan-07 14:54 
QuestionChange activex security for htm client side Pin
Will6618-Jan-07 13:51
Will6618-Jan-07 13:51 
AnswerRe: Change activex security for htm client side Pin
Will6618-Jan-07 13:54
Will6618-Jan-07 13:54 
QuestionApache serving files with query strings in their name Pin
Paul Watson18-Jan-07 12:23
sitebuilderPaul Watson18-Jan-07 12:23 
GeneralRe: Apache serving files with query strings in their name Pin
George L. Jackson18-Jan-07 12:56
George L. Jackson18-Jan-07 12:56 
GeneralRe: Apache serving files with query strings in their name Pin
Paul Watson18-Jan-07 13:08
sitebuilderPaul Watson18-Jan-07 13:08 
AnswerRe: Apache serving files with query strings in their name Pin
Bradml18-Jan-07 13:49
Bradml18-Jan-07 13:49 
GeneralRe: Apache serving files with query strings in their name Pin
Paul Watson18-Jan-07 22:14
sitebuilderPaul Watson18-Jan-07 22:14 
GeneralRe: Apache serving files with query strings in their name Pin
Bradml19-Jan-07 1:38
Bradml19-Jan-07 1:38 
GeneralRe: Apache serving files with query strings in their name Pin
Paul Watson19-Jan-07 3:31
sitebuilderPaul Watson19-Jan-07 3:31 
GeneralRe: Apache serving files with query strings in their name Pin
Bradml19-Jan-07 4:30
Bradml19-Jan-07 4:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.