2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

1人コンプAdvent Calendar 2022

Day 6

「このページを印刷する」ボタンを作ってみた

Posted at

「このページを印刷する」ボタン

BF4C7F70-754C-4AC3-974C-D1E63F912190.jpeg
こんな感じのボタン。

コード

<input type="button" value="このページを印刷する" onclick="window.print();">

単純。onclickwindow.print();をつけてあげればいいだけです。
aタグとかにもつけられます。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?