/    Sign up×
Community /Pin to ProfileBookmark

Testing javascript code

? I have written my code using ‘notepad’ and tested it using OPERA, where I enter the URL address: [url]http://www.w3schools.com/css/tryit.asp?filename=trycss_background[/url].

OPERA runs this example, and I then copy and paste my code and execute it. That worked fine for me while I was writing it. Now I would like to test my code standalone, and have no idea as to how to go about doing this. I have searched (trying various combinations) to find out what to/ how to do this but cannot find a clue. Could you help me in setting up a stand alone test environment where I can point to my code and have my page displayed in its own window 😮 .

Somewhere I read about setting up DOS files, but am not certain, or know how to go about doing this.

I have no clue about standalone testing, that is why I am asking for some help.

Thanks in advance.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@yardman0authorSep 19.2006 — I would like to say thanks to burnt1ce85 who asked the question - Loading JS files. Using his question as a global search argument I found exactly what I was asking. Here is my search argument: 'creating .js files' which returned numerous hits. The section I needed was Creating and using scripts. here is the link:

Creating and Using Scripts

Creating and Using Scripts. Are you ready to create and use your first script? ... debug scripts in a WSH 2 environment, you must invoke your script using either ...www.freeweb.hu/wsh2/ch01d.html - 33k.

Now I can continue with my project.
×

Success!

Help @yardman0 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.18,
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,
)...