Solved

run this script on html form

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

707 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

14 Experts available now in Live!

Get 1:1 Help Now