Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Chapter 5: Creating Web Widget with HTML, CSS, and JavaScript

, 16 May 2010
Free chapter from the book: Developing Web Widget with HTML, CSS, JSON and AJAX

document.write('<link rel="stylesheet" type="text/css" href="style.css">');
document.write('<script type="text/javascript" src="WidgetCreate.js"></script>');

var myElement = document.getElementById('myFirstWidget');
var JavaScriptCode = document.createElement("script");
JavaScriptCode.setAttribute('type', 'text/javascript');
JavaScriptCode.setAttribute("src", 'data.js');

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 16 May 2010
Article Copyright 2010 by Raj Lal
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid