Skip to Main Content
JavaScript - Schritt für Schritt
book

JavaScript - Schritt für Schritt

by Steve Suehring
May 2011
Intermediate to advanced content levelIntermediate to advanced
480 pages
17h 59m
German
Microsoft Press Deutschland
Content preview from JavaScript - Schritt für Schritt
204
Kapitel 9: Das Browser-Objektmodell
Höhe und Breite des Besucherbildschirms ermitteln
1. Bearbeiten Sie die Datei screen.htm im Ordner der Begleitdateien von Kapitel 9 mit Visual Studio, Eclipse
oder einem anderen Editor.
2. Fügen Sie in die Seite den folgenden fettgedruckten Code ein (den Sie auch in der Begleitdatei screen.txt
finden):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Screen</title>
</head>
<body>
<script type="text/javascript">
alert("Verfügbare Höhe: " + screen.availHeight);
alert("Gesamthöhe: " + screen.height);
alert("Verfügbare Breite: " + ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Script: Das umfassende Referenzwerk

Java Script: Das umfassende Referenzwerk

David Flanagan

Publisher Resources

ISBN: 9783848320417Purchase bookSupplemental Content