Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

turtle-83

Botão 'Cancelar' como default!!!

Recommended Posts

não consegui fazer...

 

eu tinha:

...else{       if(confirm("Tem certeza da exclusão do item selecionado?"))    {      location.href=".....     {...
tirei o trecho acima.

 

Acima da tag:

<script TYPE="text/javascript" language="javaScript">
coloquei:

<script language="VBScript"><!--Function makeMsgBox(tit,mess,icon,buts,defs,mode)  butVal = icon + buts + defs + mode  makeMsgBox = MsgBox(mess,butVal,tit)End FunctionFunction makeInputBox(title,question,default_answer)  makeInputBox = InputBox(title,question,default_answer)End Function--></script>
logo abaixo:

<script TYPE="text/javascript" language="javaScript">

 

function disabled(){

document.form.txt_mat.disabled=true;

document.form.txt_mod.disabled=true;

document.form.txt_grp.disabled=true;

document.form.txt_sub.disabled=true;

document.form.txt_cla.disabled=true;

}

 

function excluir(){

var j_mat = document.form.txt_mat.value;

var j_mod = document.form.txt_mod.value;

var j_grp = document.form.txt_grp.value;

var j_sub = document.form.txt_sub.value;

var j_cla = document.form.txt_cla.value;

var j_hdn_mat = document.form.hdn_mat.value;

 

if (j_mat == ""){

alert("Selecione um item da lista abaixo!");}

}

 

<!--Browser sniffer. Written by PerlScriptsJavaScripts.com-->

 

v3 = 0; op = 0; ie4 = 0; ie5 = 0; nn4 = 0; nn6 = 0; isMac = 0;

 

if(document.images){

if(navigator.userAgent.indexOf("Opera") != -1){

op = 1;

} else {

ie4 = (document.all && !document.getElementById);

nn4 = (document.layers);

ie5 = (document.all && document.getElementById);

nn6 = (document.addEventListener);

}

} else {

v3 = 1;

}

 

if(navigator.userAgent.indexOf("Mac") != -1){

isMac = 1;

}

 

function alert_confirm(){

if(ie4 || ie5){

retVal = makeMsgBox("hello","are you well?",32,4,256,0);

if(retVal == 6) {alert("Good");}

else if (retVal == 7) {alert("Awww");}

} else {

alert("I am not IE");

}

}

 

function input_box(){

 

<!--only three args here-->

<!--Title, Question, Default answer-->

 

if(ie4 || ie5){

retVal = makeInputBox("How are you?","Hello","Good, thank you");

} else {

retVal = prompt("How are you?","Good, thank you");

}

 

if(retVal){

alert("Submitted");

} else {

alert("canceled");

}

}-->

</script>

 

onde vermelho são funções minhas...

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.