Button: to stop - setTimeout

W

wfcook

I used the following to do this but it does not work.

What did i do wrong?

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Timer Test</title>
<style fprolloverstyle>A:hover {color: red; font-weight:
bold}
</style>
<meta http-equiv="Page-Exit" content="revealTrans
(Duration=3.0,Transition=6)">
<meta name="Microsoft Theme" content="copy-of-expedition
001">
<meta name="Microsoft Border" content="none">

<body>
<metaname= "function newPage(URL)" {window.location =
URL;http://home.houston.rr.com/wfcook/Members.htm}
}
<onload="mypageTimer = window.setTimeout(newPage
('mypage.htm') 100 * 3);
</>
</head>

<body>

<p align="center">&nbsp;</p>
<p align="center">&nbsp;&nbsp;
<font face="Comic Sans MS" size="5" color="#FF9900">&nbsp;
</font>&nbsp;<img border="0" src="Haushalter.jpg"
width="450" height="363"></p>
<p align="center"><font face="Comic Sans MS" size="4"
color="#800000">John &amp;
Susan Haushalter</font></p>

<onclick="clearTimeout(mypageTimer); return false;"

</body>

</html>

Any Ideas where I made my errors, I get no button.

Thanks
 
D

David Berry

I'm not sure I understand the question. Do you mean you want to see a form
button on the page? Of so, you need a tag to display it. You have the
following line:

<onclick="clearTimeout(mypageTimer); return false;"

Standing alone. It should be like this:

<input type="button" value="Button" name="Mybtn"
onclick="clearTimeout(mypageTimer); return false;">
 

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

Top