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

[-]
جدیدترین پست ها
تعمیر صفحه نمایش لپ تاپ
آیا همه پنل‌های ال‌س...پیمان — 10:02 AM
تعمیر صفحه نمایش لپ تاپ
چه کیفیت‌هایی از پن...پیمان — 10:01 AM
تعمیر صفحه نمایش لپ تاپ
اجزای اصلی قابل‌تعوی...پیمان — 10:01 AM
تعمیر صفحه نمایش لپ تاپ
آموزش تصویری تعمیر ص...پیمان — 09:57 AM
متن‌های خلاصه‌شده با هوش مصنوعی ممکن است...
متن‌های خلاصه‌شده با...پیمان — 05:54 PM

[-]
آخرین آمار انجمن
» Members: 27
» Latest member: سارینا
» Forum threads: 449
» Forum posts: 695

Full Statistics

[-]
اهداف انجمن
34.8% of the way to our goal of 2,000 posts!
Only 1,305 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!