An Warware: Maɓallin shafin buga html

Babban matsalar da ke da alaƙa da bugu na maɓallin shafi html shine cewa ba ya aiki a duk masu bincike.

 code

<input type="button" value="Print this page" onclick="window.print()">

Wannan layin lambar yana ƙirƙirar maɓalli wanda, idan aka danna, zai buga shafin na yanzu.

Buga cikin HTML

Don bugawa a cikin HTML, yi amfani da aikin bugawa (). Misali:

buga ("Hello Duniya!")

Menene Shafin Buga don

Print Page sifa ce ta a

element wanda ke gaya wa mai lilo ya buga abin da ke cikin div a shafi ɗaya.

Shafi posts:

Leave a Comment