linkedin facebook linkedin facebook nod32

JavaScript da Web sahifani printerga chop etish usuli

Muallif: Mengliyev Sh.

Qo`shilgan sana: 2015-03-28

JavaScript da Web sahifani printerga chop etish usuli

Quyidagi faylni index.html sahifasida hosil qiling


<html>
<BODY>
<CENTER>
<SCRIPT Language="Javascript">
function printit(){ 
if (NS) {
window.print() ; 
} else {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6, 2);
}
}
</script>
<SCRIPT Language="Javascript"> 
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);
if (VERSION > 3) {
document.write('<form><input type=button value="Sahifani chop etish" name="Print" onClick="printit()"></form>');       
}
</script>
</center>
</body>
</html>

1327 marta o`qildi.

Parol:
Eslab qolish.


Ro`yhatdan o`tish

testing

+998915878681

Siz o`z maxsulotingizni 3D reklama ko`rinishda bo`lishini xohlaysizmi? Unda xamkorlik qilamiz.

3D Reklama


Рейтинг@Mail.ru
Рейтинг@Mail.ru

Besucherzahler
счетчик посещений