Title: Embed script?
Last modified: August 21, 2016

---

# Embed script?

 *  Resolved [nanamarti](https://wordpress.org/support/users/nanamarti/)
 * (@nanamarti)
 * [13 years ago](https://wordpress.org/support/topic/embed-script/)
 * Is it possible to embed the following script?
 * _[ Moderator Note: [Please post code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   or markup snippets between backticks or use the code button. ]_
 *     ```
       <script type="text/javascript">
         SETTINGS_HOST = "//xxx.xxx.xxx";
         TP_FORM_SETTINGS = {
       	"main": {
       		"marker": "13260",
       		"width": 700,
       		"white_label_host": "",
       		"show_logo": false,
       		"show_hotels": null,
       		"form_type": "avia",
       		"currency": "rub",
       		"sizes": "default",
       		"search_target": "_self",
       		"origin_iata": "",
       		"destination_iata": "",
       		"origin_name": null,
       		"destination_name": null,
       		"border_radius": "5"
       	},
       	"best_offers": {
       		"origin_iata": "",
       		"origin_name": "",
       		"destination_iata": "",
       		"destination_name": "",
       		"language": "",
       		"currency": "rub",
       		"one_way": false,
       		"offers_switch": true
       	},
       	"color_scheme": {
       		"icons": "icons_blue",
       		"background": "#ffffff",
       		"color": "#000000",
       		"border_color": "#cccccc",
       		"button": "#03bae4",
       		"button_text_color": "#ffffff"
       	}
       };
         (function(){
           var code = ['<div class="aviasales_inlineable">',
             '<div style="visibility: hidden;" data-widgets-forms-inlineable="{"forms":"search","link":"/widgets/518554c2ad3878708d00000e.json?locale=ru"}">',
             '<div class="nano_form_tabs_wp ultra_narrow_tabs">',
             '<div class="nano_form_tabs" data-widgets-forms-inlineable-tabs="">',
             '</div></div></div></div>'];
           var loader_url = SETTINGS_HOST + '/assets/nano_ui/widgets/partners/loader_ru.js?no_cache=' + (+new Date());
             code.push('<' + 'script src="' + loader_url + '">' + '<' +'/script>');
           document.write(code.join(''));
         })();
   
       </script>
       ```
   
 * [http://wordpress.org/extend/plugins/iframe/](http://wordpress.org/extend/plugins/iframe/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [13 years ago](https://wordpress.org/support/topic/embed-script/#post-3764102)
 * Iframe plugin use [iframe] shortcode and it is the replacement for the html iframe-
   tag.
    It is not possible to post javascript via Iframe plugin.

Viewing 1 replies (of 1 total)

The topic ‘Embed script?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/iframe_99a44b.svg)
 * [iframe](https://wordpress.org/plugins/iframe/)
 * [Support Threads](https://wordpress.org/support/plugin/iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iframe/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [webvitalii](https://wordpress.org/support/users/webvitaly/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/embed-script/#post-3764102)
 * Status: resolved