/    Sign up×
Community /Pin to ProfileBookmark

javascript code not working!!!!!

Well I am a real novice when it comes to javascript, i am having a strange problem, what ever code i am writing for javascript is not showing in my browser, although any javascript code from net is loading and working fine, i ve checked the settings for browser(javascript is enabled) and i ‘ve tried all the famous browsers (IE6, Mozilla firefox and opera).
any help wud be highly appreciated.

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@P-entertainmentJun 06.2007 — What do you mean by "not showing"?
Copy linkTweet thisAlerts:
@karan_736authorJun 06.2007 — "not showing" means not working, like if i want to display browser information with javascript code , nothing is displayed in the browser.
Copy linkTweet thisAlerts:
@JMRKERJun 06.2007 — Can you give us some kind of hint as to what your 'not showing' code looks like?

If the script works elsewhere on the net, but not your copied version, then it's probably in the set-up of your script.

Helping to solve this problem without the code, for me, is like trying to give a haircut through the mail.
Copy linkTweet thisAlerts:
@karan_736authorJun 06.2007 — no javascript code is working not even as simple as this

<html>

<body>

<form>

<input type="button" value="Click Me" onclick="window.alert ('Ouch!')">

</form>

</body>

</html>

browser is displaying a button but no alert window is poping as it should for this code.
Copy linkTweet thisAlerts:
@JMRKERJun 06.2007 — Works fine in FireFox and Safari on a iMac.

Nothing wrong with supplied script.

Suggestions:

1. Try another users computer to assure yourself you are not crazy.

If it works, look at browser settings and replicate on your computer.

2. Try restarting your browser or computer in case it went crazy for awhile.

3. All else fails, try downloading another version of your browser.
Copy linkTweet thisAlerts:
@karan_736authorJun 07.2007 — problem has been solved although i wud like to know the explanation , i installed netscape navigator and the code worked perfect with that, so i upgraded IE6 to IE 7 and code started working , for mozzilla i jus downloaded fresh setup, installed and it was working there as well. I didnt change anything in code ,

i wonder what could be the reason, anyways thanks a lot JMRKER for suggestions
Copy linkTweet thisAlerts:
@JMRKERJun 07.2007 — Never question Murphy's Law or good luck. ?

Anyway, glad I could help. ?
×

Success!

Help @karan_736 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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