Hais txog kev saib lub vev xaib, "hloov kho" feem ntau txhais tau tias qhov tsis zoo no nkag rau hauv browser ntawm tus qhua tsis yog ntawm nplooj ntawv rau qhov kev thov xa mus rau lawv, tab sis qee lwm. Xws li ib qho kev xa rov qab yog npaj los ntawm tus tswv ntawm nplooj ntawv lossis chaw, coj los ntawm ob lub hom phiaj zoo thiab tsis yog cov kev coj zoo. Raws li cov kev siv los siv rau txoj kev hloov tsheb, nws yuav muaj peev xwm rau tus xaib xaib kom rov qab qhov kev hloov pauv uas tsis xav tau no.
Cov Lus Qhia
Kauj ruam 1
Sim nias tus yuam sij Escape yog tias qhov txheej txheem rov ua haujlwm (yog li, thau cov nplooj ntawv koj tsis xav tau) pib tom qab nplooj ntawv koj xav nyob rau ntawd tau tawm. Tus yuam sij no cuam tshuam cov txheej txheem pib thiab, raws li, tshem tawm txoj kev hloov mus rau lwm qhov chaw nyob hauv Internet. Txoj kev no tuaj yeem siv thaum kev hloov mus rau qhov chaw raug tso rau ntawm qhov chaw ntawm nplooj ntawv thiab siv siv cov ntawv sau JavaScript lossis meta tag.
Kauj ruam 2
Siv cov kev pab cuam uas thaiv JavaScript uas tsis xav tau. Lawv tshawb xyuas cov ntawv sau thiab cov cim npe hauv cov kab kev cai ntawm cov nplooj ntawv rub tawm rau lub khoos phis tawm ntawm kev thov ntawm lub browser thiab tua cov kev ua tiav ntawm cov ntawm lawv uas tau ua haujlwm rau cov kev ua uas tsis thov los ntawm tus neeg siv. Piv txwv li, qhov kev pabcuam Proxomitron, ntxiv rau kev thim rov qab siv cov ntawv sau, tseem tuaj yeem taug qab "nres cov lus" hauv cov chaw nyob - uas yog, yog tias nplooj ntawv URL muaj cov lus hloov lossis qee lo lus uas feem ntau siv los ntawm server scripts, tom qab ntawd coj mus yuav thaiv.
Kauj ruam 3
Yog tias koj muaj lub Opera browser tau teeb tsa, koj tuaj yeem siv nws cov lus cim tsim ntawm cov cav, uas ua rau cov phiaj xwm ntxiv ntawm yam no tsis tsim nyog. Txawm li cas los xij, txhawm rau txhim kho nws yuav tsum muaj kev paub tseeb ntawm cov lus JavaScript. Txhawm rau nkag mus rau qhov kev xaiv no, nias qhov tseem ceeb ua ke Ctrl + F12, mus rau "Advanced" tab, xaiv tshooj "Cov ntsiab lus" thiab nyem rau ntawm "Cov ncauj lus thaiv".
Kauj ruam 4
Lov tes taw JavaScript scripts nyob rau hauv koj tus browser kom tsis txhob rov ua dua li siv cov ntawv sau no. Hauv Opera, lub npov uas yuav tsum tau muab tso rau ntawm tib nplooj ntawv, txoj hauv kev uas tau piav qhia nyob hauv kauj ruam dhau los. Nyob rau hauv Mozilla FireFox, qhov chaw teeb tsa no nyob rau ntawm "Cov ntsiab lus" tab ntawm lub qhov rais qhib los ntawm xaiv "Xaiv" cov khoom hauv seem "Cov Cuab Yeej" ntawm lub browser menu. Hauv Internet Explorer, hauv ntu "Cov Cuab Yeej", xaiv kab "Internet Xaiv" kab, mus rau "Security" tab thiab nyem rau ntawm "Lwm yam" khawm. Tom qab ntawd nrhiav tshooj "Active scripts" nyob rau hauv cov npe kab thiab tsis xaiv lub "Pab" rau hauv nws.
Kauj ruam 5
Yog tias qhov kev hloov kho raug teeb tsa los ntawm kev siv server scripts lossis kev teeb tsa ntawm lub server nws tus kheej, tom qab ntawd, alas, nws tsis tuaj yeem tshem tawm nws yam tsis muaj kev nkag mus rau cov scripts.