Forum buat anak 09-2
 
IndeksPendaftaranLogin

Share | 
 

 T024-javascript

Go down 
PengirimMessage
sukizz



Jumlah posting : 6
Join date : 27.06.09
Age : 29
Lokasi : Medit

PostSubyek: T024-javascript   Sun Jul 19, 2009 1:06 pm

1.beda javascript sm java apa??? + sejarah2nya.
2.function bisa balikin nilai ga???
3.yang mana slash dan mana backslash??
4.bedanya atribute type sama atribute language di tag script???
5.napa document.getelementById("aa"); ga bs???


jawab...
masi ada 6 sm 7.. tp lupa tulis...

2. bisa balikin nilai
3.\=backslash /=backslash
4.klo atribute language kita ga usa pke text,kalo type mau..
mis: <script type="text/javascript">
<script language="javasrcipt">
Kembali Ke Atas Go down
Alianto

avatar

Jumlah posting : 13
Join date : 27.06.09

PostSubyek: Re: T024-javascript   Mon Jul 20, 2009 9:20 am

ini utk no 3 mungkin lg ketik pas ngantuk dia, /=slash \=backslash (jgn sampai ada yang salah cuma gara2 copas)

utk no 4... lebih jelasnya ini yang gw dapat

Yes, there is a difference . <script language="JavaScript"> is incorrect There is no attribute "language" it has been deprecated. The required attribute is "type" and the type="text/javascript" Hence... <script type="text/javascript"> is now the correct form Because language="javascript" is deprecated does not mean that it will not work. It means that it is outdated and should be considered as poor coding practice. At present deprecated attributes and also deprecated elements will still work. This is to preserve backward browser compatibility. Eventually they will be dropped completely and will no longer be usable.

jadi intinya penulisan atribut language tu digantiin ama type (seperti name diganti dengan id).
Kembali Ke Atas Go down
 
T024-javascript
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» Javascript: Mengalihkan member setelah login [All version]
» Javascript: Buat thread cepat mirip kaskus
» Javascript: Login Melayang [All version]
» Javascript: Info topic starter [Punbb]
» Javascript: Memasukkan tooltip di forum [All version]

Permissions in this forum:Anda tidak dapat menjawab topik
Trainee 092 :: Pertanyaan-Pertanyaan Presentasi-
Navigasi: