ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC Logo
Posted on Mar 29, 2008

Help me to insert a java script

Please can you help me. I am new to web design and html. I have a java script code in html and need help as i do not know how to insert it into my current webpage. I have tried but it do not work. All it does is show the coding on the actual page when viewed in IE.
Look forward to receiving your help.
Andy

  • James Humig
    James Humig May 11, 2010

    Do you have any example source code?

    As far as the text showing up in the browser, you need to place the actual code inside comments:



    Example:


×

2 Answers

Anonymous

Level 1:

An expert who has achieved level 1.

  • Contributor 1 Answer
  • Posted on Aug 13, 2008
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Joined: Aug 13, 2008
Answers
1
Questions
0
Helped
245
Points
2

What is javascript of a button ceating in flash

  • Anonymous Aug 13, 2008

    what is scripting about creating a button in flash

×

Anonymous

Level 1:

An expert who has achieved level 1.

Corporal:

An expert that has over 10 points.

Problem Solver:

An expert who has answered 5 questions.

  • Contributor 18 Answers
  • Posted on Jun 07, 2008
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Corporal:

An expert that has over 10 points.

Problem Solver:

An expert who has answered 5 questions.

Joined: Jun 05, 2008
Answers
18
Questions
0
Helped
4978
Points
25

What I think you have done here is put your script in the body section without declaring script type, therefore the browser renders it as HTML rather than an active script. For example:

<body>
document.write("<h1>This is a header</h1>");
document.write("<p>This is a paragraph</p>");
document.write("<p>This is another paragraph</p>");WONT WORK and will display in the browser.

However...

<body>
<script type="text/javascript">
{
document.write("<h1>This is a header</h1>");
document.write("<p>This is a paragraph</p>");
document.write("<p>This is another paragraph</p>");
}
</script></body>

WILL WORK! Ensure that you have wrapped your script in the appropriate tags as above or the browser wont recognise the script.

:0)

Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

255 views

Ask a Question

Usually answered in minutes!

Top ArcMedia Computers & Internet Experts

Rob Hill
Rob Hill

Level 3 Expert

1483 Answers

Anonymous

Level 2 Expert

214 Answers

Dax Estorioso
Dax Estorioso

Level 2 Expert

162 Answers

Are you an ArcMedia Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...