Thread: javascript and html
-
18-11-07, 16:27 #1Master Member I was here more times.
- Join Date
- Nov 2007
- Posts
- 552
- Rep Power
- 0
javascript and html
can anyone suggest me how can we add javascript code to html.. i am very much interested in creating websites with javascript .... please do help me out with us.. i really seek your help guys..
regards
jagan
-
29-01-08, 02:28 #2Veteran Member I was here more times.
- Join Date
- Dec 2007
- Posts
- 3,333
- Rep Power
- 0
what is javascritp. where do you use that. i will like to learn the uses of that javascript too.
-
29-01-08, 13:54 #3Master Member I was here more times.
- Join Date
- Dec 2007
- Posts
- 768
- Rep Power
- 0
Re: javascript and html
Originally Posted by therealdeal
but tell me where can i practice writing java scripts. i want to work practically while learning it
-
06-02-08, 00:47 #4Veteran Member I was here more times.
- Join Date
- Dec 2007
- Posts
- 3,333
- Rep Power
- 0
is javascript really useful in programming websites well i think that we have that javascript option in the blog. you just have to look for a word javascript/html.
-
18-06-08, 02:34 #5
javascript is very useful for programming websites. in blogger can u use it.
-
18-06-08, 17:39 #6Veteran Member I was here more times.
- Join Date
- May 2008
- Posts
- 1,147
- Rep Power
- 0
But I guess you can hack a website too using javascript if javascript is used by that site.
-
18-06-08, 18:43 #7Veteran Member I was here more times.
- Join Date
- Feb 2008
- Posts
- 1,920
- Rep Power
- 0
javascript into HTML, never heard that.
What do you want to make with that?
I think Javascript is different with HTML
-
19-06-08, 06:19 #8Veteran Member I was here more times.
- Join Date
- May 2008
- Posts
- 1,147
- Rep Power
- 0
Originally Posted by alec11
-
12-10-08, 08:31 #9
There are two ways you can javascript in to HTML.
1. Write .js file and write all the java script function and call the function from your html files.
2. You can write java script in your own HTML files itself.This is difficult to maintain if HTML file is big.
eg
<html>
<head>
<script>
function MyFunction()
{
alert("Hello World!");
}
</script>
</head>
<body>
<form>
<input type="button" value="Click me!"
onclick="MyFunction()" >
</form>
</body>
</html>
the above simple example when you click the Click me buttion you will see alert of the Hello World
-
02-02-09, 18:06 #10Member
- Join Date
- Feb 2009
- Posts
- 38
- Rep Power
- 0
It is real tough task if you have good idea of html and javscipt then only you can do the combination.
-
02-02-09, 19:34 #11Master Member I was here more times.
- Join Date
- Sep 2008
- Location
- Kolkata, India
- Posts
- 985
- Rep Power
- 0
You can insert small javascripts in html file to perform certain function. Pl find 'fg-a.com' (insert a www before this text) for some free javascript codes. You will find this from the menu which is written in the left side.
-
24-02-09, 17:53 #12Master Member I was here more times.
- Join Date
- Feb 2009
- Location
- India
- Posts
- 394
- Rep Power
- 0
Re: javascript and html
Originally Posted by therealdeal
If you know the HTML then in that you will find <head> </head> tag so in between you have to add Java script in below format.
<head>
<script language="Javascript" type="text/javascript">
<!--
// Your java script will goes here
//-->
</script>
</head>
I hope this will help you to add you and use Java script in yout HTML page. Good luck!
-
25-04-09, 07:38 #13Master Member I was here more times.
- Join Date
- Apr 2009
- Posts
- 553
- Rep Power
- 0
Message
Here is the link that i think will answer your question.
http://www.dummies.com/how-to/conten...-and-html.html
-
15-05-09, 14:12 #14Senior Member I was here more times.
- Join Date
- May 2009
- Location
- India
- Posts
- 124
- Rep Power
- 0
See the Example of a simple Program in both HTML and JavaScript
Program in html:-
<HTML>
<HEAD>
<title>HTML to JavaScript</title>
</head>
<BODY>
HTML to JavaScript Converter
</BODY>
</HTML>
Program in JavaScript:-
<script language="JavaScript">
<!--
document.writeln("<HTML>");
document.writeln("<HEAD>");
document.writeln("<title>HTML to JavaScript</title>");
document.writeln("</head>");
document.writeln("<BODY>");
document.writeln("HTML to JavaScript Converter");
document.writeln("</BODY>");
document.writeln("</HTML>");
//-->
</script>
Hope this will help you.......
-
19-05-09, 08:53 #15Master Member I was here more times.
- Join Date
- Mar 2009
- Posts
- 899
- Rep Power
- 0
To design a web site, Java script is not needed but you can really use that to make the page more interactive and dynamic
-
19-05-09, 11:28 #16Originally Posted by sekhar4m92
Sekhar while providing this script do one thing , in text box above u will find one button called "Code" just use that option because it will help to see any kind of code in well manage and another use of the code button is, in forum's back end we run it from BBcode when we write any code like javascript or any kind of code without using the code option it will put little effect on the BBCode but your code is not harmful at all but when you want to add any code to show any example use the "Code" option. You Did a gr8 job, You, alensot, revvv1234, microsoft, Danega you guys are rocking and i like to read your all technical answers so keep contributing your skill here.
Thanks,
Bye.
Similar Threads
-
What is HTML?
By lennondevid in forum Website DesignReplies: 6Last Post: 27-02-16, 07:21 -
Jsp vs html - which one u use.. ?
By paramita0101 in forum Webmaster newbie helpReplies: 10Last Post: 27-08-12, 11:26 -
Can I learn javascript and php indepth from internet?
By lemon_1800 in forum ScriptsReplies: 28Last Post: 14-06-09, 09:03 -
Is it safe to put javascript to our site?
By alec11 in forum ScriptsReplies: 20Last Post: 04-03-09, 19:53 -
need help with html
By cj monaco in forum Website DesignReplies: 14Last Post: 12-10-08, 19:18
Bookmarks