...

View Full Version : closing/hiding windows



matthewpshostak
12-28-2007, 03:49 PM
I am fairly new to javascripting, and i have run into a problem.
Lets say i have a table on my page, with a button with a value of X that when clicked calls a function "closetable". I dont care if it gets hidden or closed, i just want to be able to make it dissapear, the closest i can get is making it dissapear and reappear in less than a second using documentGetElementById("tableone").style.visibility="hidden". can anybody tell me either what im doing wrong? or a different, yet correct way to make this table go away when i want it to?
thanks
i will attach the file incase anybody wants to see it

abduraooft
12-28-2007, 04:04 PM
Change your X button's type to type="button" OR
change onclick as

onclick="closediv(); return false;"
(You form is getting submitted and which is causing your page to reload again, and behaves just like refresh)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum