Java Script - how to center a text in a form

My URL is

I have a clock on the top.  The time is on the left side.  I want to center it,  or make the form smaller, or not to have the form.

If you need my script, or form, I will post them here.

Thank you
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Just make the boder of the input 0 so you wont see it.

<input type="text" name="clock" style="border:0">

This way all you see is the clock.

Hope this helps...

wzhu58Author Commented:
Thank you D_M_D.

Would you please also tell me how to center the text and change the size of the form?

Please post the code for your top frame - upper_frame.htm

Here you go.  Is this what your looking for...

Just replace the body code in your upper_frame.htm file with this...

<BODY leftMargin=0 topMargin=0 onload=writeTime() MARGINHEIGHT="0"
<form name="the_form">
<TABLE width="60%" border="0" bgColor=#ffffff height="19">
    <TD vAlign=top align=middle width="35%">
      <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">
      <A href="" target=_top><B><FONT
      face=Arial color=#544c4c size=4></FONT></B></A></p>
    <TD vAlign=top align=middle width="40%"><FONT face=Arial
      color=#000000 size=2>
            document.write( dayName[now.getDay()] + " ,  " + monName[now.getMonth()] +"  " + now.getDate() + "  " + now.getFullYear())
        <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><INPUT
name=the_text size="8" style="border:0"></FONT></TD></TR></TBODY></TABLE></form></center></BODY>

I added a size to the form so the time would look nicer.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wzhu58Author Commented:
Hello D_M_D,

It works very well. Thank you.

How you know my html is name upper_frame?  I didn't give you my file name.


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.