2015-08-21 78 views

回答

0

我沒有看到任何(理智)的理由這樣做,但你可以嘗試這樣的事:

<!DOCTYPE html> 
<html onclick="popup()"> 
<body> 

<h1>Click on this page!</h1> 

<script> 
function popup() { 
    alert("I really hate popups, do you?"); 
} 
</script> 

</body> 
</html>