Link to home
Start Free TrialLog in
Avatar of rgarimella
rgarimella

asked on

Frame Style Display

Hi Folks,

I have the following code () which works fine on a webserver i.e no error but locally I get the following error

top.document.all.Navigation.style is null or not an object.

top.document.all.Navigation.style.display = 'none';  // Works on webserver

Here is how i have my frame set defined.


<frameset rows="100%,*" frameborder="no" border="0" framespacing="no" >

<frame src="ca_16_01_0010.htm" name="Content" title="Main Content" SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" noresize>

<frame src="bottomnav01.htm" name="Navigation" title="Navigation" SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" noresize>

</frameset>
top.document.all.Navigation.style.display = 'none';

Open in new window

Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

try
<frame src="bottomnav01.htm" name="Navigation" title="Navigation" SCROLLING="no" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="no" BORDER="0" noresize>

window.frames['Navigation'].style.display = "none"
Avatar of rgarimella
rgarimella

ASKER

No Same error, is null or not an object
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial