رتبه موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
[-]
اسلایدها

[-]
جدیدترین پست ها
از کار افتادن منوی جستجو در ویندوز 10
اگر با قرار دادن ماو...پیمان — 02:13 PM
مقایسه لپ تاپ با سیستم عامل ویندوز و کرو...
1- لپ تاپ هایی که دا...رویا — 01:29 PM
Cable Super Charge Borofone کابل شارژ ب...
کابل :    Borofone  ...رویا — 12:33 PM
چگونه می توان از موتورهای کوچک اپتیکال د...
موتورهای DC کوچک موج...پیمان — 08:06 PM
آیا امکان استفاده از قطعات داخلی دی وی د...
قطعات داخلی دی وی دی...پیمان — 08:05 PM

[-]
آخرین آمار انجمن
» Members: 26
» Latest member: آرین
» Forum threads: 410
» Forum posts: 625

Full Statistics

[-]
اهداف انجمن
31.3% of the way to our goal of 2,000 posts!
Only 1,375 posts left to go!

JavaScript Tutorial
#1
JavaScript is the world's most popular programming language.
JavaScript is the programming language of the Web.
JavaScript is easy to learn. Cool
پاسخ
#2
دوستان عزیزی که مشغول فراگیری جاوا اسکریپت هستید.

میتوانید دستورات جالب و کاربردی جاوا اسکریپت را در اینجا به سایر دوستانتان پیشنهاد کنید.
Wink
تائید شده توسط مدیر سایت
پاسخ
#3
I want to print some HTML content, when the user clicks on a button. Once the user clicks on that button, the print dialog of the browser will open, but it will not print the webpage. Instead, it will print the some other HTML content which is not displayed on the page.

Place your printable part inside a div with an id like this:

نقل قول:<div id="printableArea">
      <h1>Print me</h1>
</div>

<input type="button" onclick="printDiv('printableArea')" value="print a div!" />
Now let's create a really simple javascript:

نقل قول:function printDiv(divName) {
    var printContents = document.getElementById(divName).innerHTML;
    var originalContents = document.body.innerHTML;

    document.body.innerHTML = printContents;

    window.print();

    document.body.innerHTML = originalContents;
}

Print a Page:

<!DOCTYPE html>
<html>
<body>

<h2>The window.print() Method</h2>

<p>Click the button to print the current page.</p>

<button onclick="window.print()">Print this page</button>

</body>
</html>
پاسخ


پرش به انجمن:


کاربران در حال بازدید این موضوع: 1 مهمان
[-]
خوش آمدید
You have to register before you can post on our site.

نام‌کاربری:


رمزعبور:





[-]
بیشترین مشارکت ها
no avatar Congratulations to رویا, our current top poster for the last month with 4 posts!