書式
window.opera
説明
Operaに関する情報を保持するオブジェクトです。Operaブラウザのみ存在するオブジェクトで他のブラウザには存在しません。このため、ブラウザ判別に利用することができます。
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
</head>
<body>
<script type="text/javascript"><!--
document.write(window.opera);
// --></script>
</body>
</html>