/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Show/hide only works in Opera 9

Hi,

The «Advanced» link on the [url=http://mailto.ws/]Mailto.ws composer Webpage[/url] is supposed to show some additional, hidden options.

But my JavaScript does only work in the [url=http://opera.com/]Opera Web browser[/url]!

I cannot get it to work in either Firefox, Camino, Safari nor Internet Explorer 7.

Can anyone please cast some light to this mystery.

[size=1](note: the JavaScript has to stay XHTML compliant)[/size]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@felgallJul 17.2006 — Try replacing:

formcopies.setAttribute("style", "display:block;");

with

formcopies.style.display = 'block';

most browsers don't support setAttribute() properly yet.
Copy linkTweet thisAlerts:
@MoldarinauthorJul 17.2006 — But then it will not work with XHTML. :/
Copy linkTweet thisAlerts:
@MoldarinauthorJul 18.2006 — OK, I fixed it myself now.

Thanks anyway!
×

Success!

Help @Moldarin 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...