Running script in title bar

C

Carl Gilbert

Hi
I have the following code but wish to move the counter into the title bar
rather than on the page.
----------------------------------------------------------------------------
-------------------

<script>var counter = 0;</script>
<SCRIPT LANGUAGE="JavaScript" FOR="CamImage1" EVENT="onNewImage()">
counter++;
document.dis.count.value = counter;
</SCRIPT>

<form name="dis" method="post" action="">
<input type="text" name="count">
</form>

<OBJECT ID="CamImage1" WIDTH=352 HEIGHT=288
CLASSID="CLSID:C79D3167-6133-4e7c-821C-5C114611022D"

CODEBASE="http://www.ipvideocenter.com/components/CameraControl.cab#VERSION=
3,2,1,0">
<PARAM NAME="URL"
VALUE="http://130.241.175.79/axis-cgi/mjpg/video.cgi?resolution=352x288">
</OBJECT>
 
L

Laurent Bugnion, GalaSoft

Hi,
Since your code is IE-only, just set the document.title=counter

This will also work in Mozilla 1+ and Netscape 6+.

Just for information ;-)

Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top