WordPressで記事投稿する時にjavascriptを記述する方法

  Wordpressで記事投稿する時に
javascriptを記述する方法

今回はWordpressの記事投稿内でJavascriptを使う方法についてです。テキストの中でHTMLの記述があると思うんですが、ここに<div>タグで<script>タグを囲ってあげるだけで簡単にJavascriptの記述ができます。

 

 

 このボタンを押すとjavascriptでalertが出ます。このボタンの中身は下記になります。


HTML


Javascript

 Javascriptを使ってみてはいかがでしょうか?
* Thank you very much for your great comments ! This article has more than 1000 comments,I’m happy to hear that.But It is difficult to return comments. I’m sorry. SAD….  If you have something to ask, please email me !!

“WordPressで記事投稿する時にjavascriptを記述する方法” への30件の返信

  1. Unquestionably believe that that you stated. Your favourite justification appeared
    to be at the web the easiest thing to remember of.
    I say to you, I certainly get irked at the same time as other people
    consider worries that they just don’t recognize about.
    You managed to hit the nail upon the highest and also defined
    out the whole thing with no need side-effects , other folks could take a signal.
    Will likely be back to get more. Thanks

  2. Hmm it appears like your site ate my first comment (it was super long) so
    I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
    I as well am an ambitious blogger yet I’m still new to everything.
    Do you have any points for beginner blog writers?
    I’d definitely appreciate it.

  3. I’ve been exploring for a while for excellent articles
    or blogs on this kind of area. Exploring in Yahoo I at last came across this site.
    Looking over this info made me discovered just what
    I needed. I will visit your website often.

  4. Thanks for some other fantastic post. Where else may just
    anyone get that type of information in such a perfect method of writing?
    I have a presentation next week, and I am at the search for such info.

  5. I’m noot thаt much of a internet reader to be honest but your
    sitеs гeally nice, keepp it up! I’ll go ahead and bookmark your site to cߋme back in the future.

    Cheers

  6. Heʏ therе! I know this is kind of off tooρic ƅut I was wondering
    which blog platform are youu usіng for tһis website?
    I’m getting sick and tired of Wordρress because I’ve had problems with hackers and I’m
    looking at options for another plаtform. I would be
    great іff you could point me in the direction of a good platform.

  7. Thanks for some other fantastic article. Where else may anybody get that knd of information in such an ideal method
    of writing? I’ve a presentation next week, and I am at the search
    for suc info.

  8. I do not even understand how I stopped up right here, but I believed this publish was once good.
    I do not recognize who you are but definitely you
    are going to a famous blogger in the event you are not already.
    Cheers!cheap nfl jerseys

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*