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

[-]
جدیدترین پست ها
پورت DVI
پورتDVIیا همان Digit...سارینا — 08:08 PM
کابل VGA
          (Video Gra...سارینا — 05:54 PM
معرفی کارت گرافیک
یکی از انواع خروجی ک...پیمان — 07:30 PM
بررسی هارد سیستم
1- ابتدا Hirens را ر...سارینا — 10:51 PM
«بدن موبایلی»؛ وقتی گوشی هوشمند شکل بدن...
ادامه کاهش قدرت ...پیمان — 06:36 PM

[-]
آخرین آمار انجمن
» Members: 28
» Latest member: xtameembb
» Forum threads: 446
» Forum posts: 685

Full Statistics

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