Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q957 Is there a background image property for the document object?

You are here: irt.org | FAQ | JavaScript | Document | Q957 [ previous next ]

Yes, but currently only in Internet Explorer 4+ and Netscape Navigator 6+ with:

<html>

<head>

<script language="JavaScript">
function getBackground() {
  if (document.body)
    alert(document.body.background);
}
//--></script>

</head>

<body onLoad="getBackground()" background="image.gif">

...

</body>

</html>

©2018 Martin Webb