Title: possible to give name attribute?
Last modified: November 3, 2020

---

# possible to give name attribute?

 *  Resolved [deedee123](https://wordpress.org/support/users/deedee123/)
 * (@deedee123)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/possible-to-give-name-attribute/)
 * hi, is it possible to give name attribute to the iframe so i can change its content
   from a link?
    i tried changing the code a bit, but doesn’t seem to have any affect…
 * d

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [unapersona](https://wordpress.org/support/users/unapersona/)
 * (@unapersona)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/possible-to-give-name-attribute/#post-13615464)
 * Hi deedee123,
    right now it is not possible to add a custom name to the iframe.
   I suggest you to use an HTML anchor (ID) instead. This way you can reference 
   the iframe and change its contents via JavaScript for example.
 * HTML Anchor is available in the Advanced section, and once defined you can use
   with something like:
    document.getElementById(‘custom-iframe’).src = ‘[https://sample.com&#8217](https://sample.com&#8217);
 * Please let me know if this works for you.
    Thank you
 *  Thread Starter [deedee123](https://wordpress.org/support/users/deedee123/)
 * (@deedee123)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/possible-to-give-name-attribute/#post-13618250)
 * Hi,
    thank you for the quick reply, much appreciated. indeed i could try that.
   however i don’t need to change the name of the frameset for each page, as i will
   be using just one per page. so maybe it’s possible to add a ‘fixed’ name for 
   the frame somewhere in the code? david
 *  Plugin Author [unapersona](https://wordpress.org/support/users/unapersona/)
 * (@unapersona)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/possible-to-give-name-attribute/#post-13619966)
 * Hi David,
    Sorry but I don’t think it will be possible to add a ‘fixed’ name 
   because of the possibility of adding multiple iframes on one page.
 * I understand your current situation but I think that doing that would not be 
   good for other uses.
 * Thank you for your message and please let me know if there is anything else I
   can help you with.
 *  Thread Starter [deedee123](https://wordpress.org/support/users/deedee123/)
 * (@deedee123)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/possible-to-give-name-attribute/#post-13620912)
 * ok, thank you for the reply. i understand your point 🙂
 * best,
    d
 *  Plugin Author [unapersona](https://wordpress.org/support/users/unapersona/)
 * (@unapersona)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/possible-to-give-name-attribute/#post-13621518)
 * ¡Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘possible to give name attribute?’ is closed to new replies.

 * ![](https://ps.w.org/simple-iframe/assets/icon-256x256.png?rev=2301770)
 * [Simple Iframe](https://wordpress.org/plugins/simple-iframe/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-iframe/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [unapersona](https://wordpress.org/support/users/unapersona/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/possible-to-give-name-attribute/#post-13621518)
 * Status: resolved