Solved

run this script on html form

Posted on 2014-10-20
5
178 Views
Last Modified: 2014-11-24
Supose to display the  java script
please what is missing?

html>
<head>
<body>
<script lenguage="JavaScript"src=http://dunsregistred.dnb.com  type="text/javascript"></script>
</body>
</head>
</html>




tsm
0
Comment
Question by:edo60
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 100 total points
ID: 40393347
<script src="path_to_and_name_of_javascript_file.js" type="text/javascript"></script>
0
 
LVL 17

Assisted Solution

by:selvol
selvol earned 200 total points
ID: 40393366
You have a TYPO in the URI

<script src="http://dunsregistered.dnb.com"></script>

Open in new window


You have this:
http;//dunsregistred.dnb.com

Selvol
0
 
LVL 4

Assisted Solution

by:ravikantninave
ravikantninave earned 100 total points
ID: 40393619
you wrote
<script lenguage="JavaScript"src=http://dunsregistred.dnb.com  type="text/javascript"></script>

should be
<script language ="javascript" src="http://dunsregistred.dnb.com" type="text/javascript"></script>
0
 
LVL 11

Assisted Solution

by:Murfur
Murfur earned 100 total points
ID: 40395063
All answers are correct but I would argue that Gary has shown better practice.

While you don't need the type="text/javascript" in HTML5, it would be best to specify the script file you want to retrieve. src="http://dunsregistred.dnb.com" should work fine until someone changes the site settings that specify the default file, whether by accident or design.

You will future-proof your code if you substitute index.js below with the actual filename:
<script language ="javascript" src="http://dunsregistred.com/index.js"></script>

Open in new window

0
 
LVL 17

Assisted Solution

by:selvol
selvol earned 200 total points
ID: 40403585
Thanks for pointing out the Best answer MurFur.  

I believe the asker wanted to know why the code was not working.

The  Misspelling  of the URI was the most likely reason for the code not working.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question