JS

0 views
Skip to first unread message

WebProg....

unread,
May 29, 2009, 7:16:51 AM5/29/09
to iitr interns
Tell me .... error ....following->


<html>
<head><script type="text/javascript">
function s()
{
alert("hi");
}
body.onload=s();//is not running why??
</script>
</head>
<body >
</body>
</html>




Shashwat Shukla

unread,
May 29, 2009, 7:28:51 AM5/29/09
to iitr-i...@googlegroups.com
http://javascriptexamples.net/

see if you can get help from this.

2009/5/29 WebProg.... <ansh...@gmail.com>

WebProg....

unread,
May 29, 2009, 7:35:26 AM5/29/09
to iitr interns
I m having doubt about....
whether it is correct to write "body.onload=s()" or not.
matlab
does body has this kind of property???

ashish....@gmail.com

unread,
May 29, 2009, 7:40:15 AM5/29/09
to iitr interns
write it like this

<html>
<head><script type="text/javascript">
function s()
{
alert("hi");
}


</script>
</head>
<body onload="s()"; >
</body>
</html>

Shashwat Shukla

unread,
May 29, 2009, 7:44:23 AM5/29/09
to iitr-i...@googlegroups.com
shabash golchi.
hamen tumpe naaz hai.
MUjhe bhi yahi doubt ho raha tha ki wo bahar likha jayega.

WebProg....

unread,
May 29, 2009, 7:45:06 AM5/29/09
to iitr interns
haan ye to ho jata hai goloos but
ye bata does body have ny property like "onload"
like window.onload=s();

ashish....@gmail.com

unread,
May 29, 2009, 7:51:11 AM5/29/09
to iitr interns
onload is not a property of body
it is an eventhandler
when the event "load" takes place this function will be executed

Saurabh Arora

unread,
May 29, 2009, 7:52:59 AM5/29/09
to iitr interns
golchi tu bond hai
mujhe 2 4 programs banvaane hai
mail kar dunga un details
do work them out

ashish....@gmail.com

unread,
May 29, 2009, 8:00:23 AM5/29/09
to iitr interns
sale
jo paise tujhe mil rhe hain wo bhi idhar forward kar diyo

or mere 50 rs bhi de de
sale warna tere **** ko kabhi shanti nhin milegi

WebProg....

unread,
May 29, 2009, 8:01:28 AM5/29/09
to iitr interns
Then how wd I change the function linked to a button(click event) by
using other button (click event)??

vishal raja

unread,
May 29, 2009, 8:09:31 AM5/29/09
to iitr-i...@googlegroups.com
are you crazy ?? write the question properly man !!

ashish....@gmail.com

unread,
May 29, 2009, 8:10:47 AM5/29/09
to iitr interns
haan yaar tu sahi keh rha hai
shayad waise hi karte honge
i m not sure

WebProg....

unread,
May 29, 2009, 8:13:27 AM5/29/09
to iitr interns


per yaar that is not working....
:(

Saurabh Arora

unread,
May 29, 2009, 8:17:02 AM5/29/09
to iitr interns
saale banie
15000 paa raha hai
free me reh raha hai
ab kya jaan lega
tu abhi bata de wo 50 is cheez hai
ahi cheque bhej dunga

ashish....@gmail.com

unread,
May 29, 2009, 8:22:04 AM5/29/09
to iitr interns
abe tune use javascript function ke andar nhin likha tha
open me likhega to kaise chalega
use ek function bna kar likh

ANSHUL AGRAWAL

unread,
May 29, 2009, 8:24:50 AM5/29/09
to iitr-i...@googlegroups.com
saale aise bhi shalta hai.
tera chal raha hai kya??

WebProg....

unread,
Jun 2, 2009, 7:46:22 AM6/2/09
to iitr interns
what does this fn in javascript do ----->
$.get(,,);

ashish....@gmail.com

unread,
Jun 2, 2009, 8:28:32 AM6/2/09
to iitr interns
i think it should be something like

$variablename.get();
but this get() function is also not there

WebProg....

unread,
Jun 2, 2009, 8:38:43 AM6/2/09
to iitr interns

is get function is standard function???
nahi yaar $.get() karke hi hai
no variablename
get bhi kahi aur define nahi kar rakha.

ashish....@gmail.com

unread,
Jun 2, 2009, 8:42:54 AM6/2/09
to iitr interns
yaar get() koi standard func to nhin hai
or $.get()
aise to aaj tak maine koi func execute nhin hota
or js to oject oriented bhi nhin hai
isliye $variable.get() bhi nhin hona chahiye
Reply all
Reply to author
Forward
0 new messages