Question:
i know html but what is javascript?
bigfootasd
2008-01-13 19:12:15 UTC
ok i know alot of html but i dont know javascript what is it is it like html?
because the basic html page starts with




and
also

are html but can i get some exzamples of javascript?
Four answers:
rod
2008-01-13 19:38:31 UTC
javascript is a simple scripting language you can use to enhance your HTML page. You can create effects like changing your link buttons or images when the mouse rolls over it. Following is a javascript used to change the image from normal to mouseover.










onMouseOut="swapoff1()">




chronoel
2008-01-13 19:36:05 UTC
Javascript is a scripting language used to make your web pages interactive.



This is the one used to make rollover images (images which change when you put your mouse over them).



It's also used to validate forms (the pop-up that appears when you did not type in a required field)



Actually it does more than that.



In placing javascript in your code you use a the tag script with an attribute language. Like below:







You can find a lot of tutorial over the internet or you can use these tutorials I've also used.
inessa
2016-10-04 14:34:46 UTC
Realistically, no. To get a job as a cyber web fashion designer, you may could desire to understand maximum, if no longer each and every of here languages: (X)HTML, CSS, Hypertext Preprocessor/Perl/Ruby, MySQL/PostgreSQL/Oracle, Flash, Javascript (with lots of AJAX awareness), XML. you may additionally could desire to understand Photoshop, Adobe Flash, Dreamweaver or different such classes. you may additionally choose a good portfolio of previous paintings. yet this is genuine of any job quite.
sakti_software_developer
2008-01-13 22:28:29 UTC
Hi,



all answers are OK. You can get some idea how to implement java script in html code from above examples. Let me explain you what is java script.



HTML

-------



-- Used only for designing.

-- A markup language interpreted/understood by web browsers to give some output.

-- Main disadvatage is, doesn't support programming.



Server side programming/scripting (java, php etc)

------------------------------------------------

-- All processing done in server.

-- database interaction, all manipulation, request/response management etc.

-- After processing it sends response as text or html which is interpreted by browser and ouput comes.



(Each time you click or submits a page, a request goes to server processing done there and response came back. For example while submitting a email form of yahoo, it sends request to yahoo server, saves your filled details in database and response cames as successfully registered). All this processing is server side procesing.



Client side scripting (java script or vb script)

----------------------------



-- Here all processing done in client side (means user pc) without sending control to server.

-- For example while validating a form detail. If you have not filled a field at that time a alert came with a message to fill that field. At that time the page doesn't got refreshed and all your filled data are there as filled.

-- If for each field validation we are dealing with server side scripting then

page will be refreshed, control will move to server, check for valid field.data. Again send control to client pc with message that u need to fill that data. So for such type of opeartions server side scripting is not efficient, so we must go for client side scripting which directly executes in client pc and deals with client side components (like form elements, page color, page design etc)

-- In comparision to vb script, java script is widely accepted for its normal coding standard and interoperability.



If page refreshed then control goes to server, else if processed in client pc then client side scripting.



I think only knowing HTML is not enough. You must learn java script. As you can made your page design dynamic with programming.



Hope all these will help you. In case of any doubt directly mail me.



Thanks & Regards

Sakti Prasad Mishra


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...