[wp-trac] [WordPress Trac] #61775: Link Field for Javascript Functions

WordPress Trac noreply at wordpress.org
Wed Jul 31 08:49:42 UTC 2024


#61775: Link Field for Javascript Functions
-----------------------------+--------------------------------
 Reporter:  gabriel1957      |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Editor           |     Version:
 Severity:  normal           |  Resolution:  reported-upstream
 Keywords:                   |     Focuses:
-----------------------------+--------------------------------
Changes (by sabernhardt):

 * status:  new => closed
 * resolution:   => reported-upstream
 * component:  General => Editor
 * milestone:  Awaiting Review =>


Comment:

 Hi and welcome to WordPress Core Trac!

 I'll close this as 'reported-upstream' because you already opened a
 Gutenberg issue.
 https://github.com/WordPress/gutenberg/issues/64068

 However, a `button` element would be more appropriate for changing content
 on the page.
 `<button onclick="changeColor()">Change to Blue</button>`
 https://www.freecodecamp.org/news/html-button-onclick-javascript-click-
 event-tutorial/

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61775#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list