/    Sign up×
Community /Pin to ProfileBookmark

Problem in Hiding frame in firefox

Hi ,

function hideFrames(){
objFrm = document.getElementById(“ifrm”)
objFrm1 = document.getElementById(“ifrm1”);
if(objFrm != null) objFrm.style.visibility = “hidden”;
if(objFrm1 != null) objFrm1.style.visibility = “hidden”;
}

This function is to hide frames of menu’s. This is working fine in IE but in mozilla firefox this is not working.
Can anybody help me.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@hoangkcOct 16.2007 — It works in FF.

What's the problem you met?
Copy linkTweet thisAlerts:
@abhiabhiauthorOct 16.2007 — In FF, frames do not hide and frame still visible.

I tried display="none" also but it also not working.
Copy linkTweet thisAlerts:
@KorOct 16.2007 — Make sure your iframe has an [B]id[/B], not a [B]name[/B]. IE, incorrectly, is able to to take the [I]name[/I] as [I]id[/I], if [I]id[/I] is missing...
Copy linkTweet thisAlerts:
@abhiabhiauthorOct 16.2007 — verified. its id of frame and not name
Copy linkTweet thisAlerts:
@hoangkcOct 16.2007 — It's strange. I copied your code and tested, and it works properly.

Can you show an example?
×

Success!

Help @abhiabhi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...