Set Window Status to This Page Title Even In Frames

[Total: 0    Average: 0/5]

This shows how to set the window status (default status) to be the top most frameset’s title on some event.

Head Code:

<script type=text/javascript>
var _p = this.parent;
while (_p != this) {
  if (_p == _p.parent) { break; }
  _p = _p.parent;
defaultStatus = _p.document.title;

Body Code:

<script type=text/javascript>
document.write("My title is ""+document.title+""");
<BR>You should see the window.status is the top most frameset's title.

Times Viewed: 2

Leave a Reply

Your email address will not be published. Required fields are marked *