onload set width

M

Mr. x

Hello,
I am using the onload event.
by the event I call function : myLoad
on myLoad I put a code like this :

function myLoad()
{
mytable1.width = 100% - 10
mytable2.width = 100% - 10
}

the line mytable1.width = 100% - 10 is executed,
but the next line isn't execute at all - after the first line is executed,
the function returns to the caller.

Why I have the above problem, and how should I avoid the problem ?

Thanks :)
 

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
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top