Solved

run this script on html form

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS - Centering an image 2 29
Html split(text) Part2 6 25
[form-control] Retain values after a POST action 21 39
allow link tag to be submit like form 15 28
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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…

730 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