Solved

run this script on html form

Posted on 2014-10-20
5
168 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now