. aspx 페이지 에서 javaScript 구현 점 단추 로 팝 업 확인 알림 창 을 표시 하 는 방법

5799 단어 JavaScript
//JavaScript js             ,           ,    ,      

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">  

<HTML>  

<HEAD>  

<TITLE>    </TITLE>  

<META NAME="Generator" CONTENT="EditPlus">  

<META NAME="Author" CONTENT="">  

<META NAME="Keywords" CONTENT="">  

<META NAME="Description" CONTENT="">  

</HEAD>  

  

<BODY>  

<a href="http://heisetoufa.iteye.com" onclick="return confirm('        ?')">  </a>  

</BODY>  

</HTML>
//JavaScript               

<html>

<head>

<title>   -          </title>

<meta http-equiv="content-Type" content="text/html;charset=gb2312">

</head>

<!--       <body> </body>  -->

<body onbeforeunload="event.returnValue='          ,        ?';"><br /><center>       ,  Ctrl+F5    ,      :<a href='http://www.veryhuo.com/' target='_blank'>http://www.veryhuo.com/</a></center>

</body>

</html>
//Javascript           ,   confirm  ,     location                  ,      ,           

<title>Javascript       </title>

<a href='javascript:if(confirm("       ?"))location="/"'>  </a>
//JavaScript           

<html xmlns="http://www.w3.org/1999/xhtml">  

<head>  

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />  

<title>My First Script</title>  

<script type="text/javascript">  

function test() {  

    var result = confirm("Please make sure.");  

    if (result == true) {  

        alert("You choose YES! Great!");  

    } else {  

        alert("What a bitch you are !");  

    }  

}  

</script>  

</head>  

<body>  

    <input type="button" value="Click Me!" onClick="test();" />  

</body>  

</html>  

좋은 웹페이지 즐겨찾기