How to get pop up for iframe in live chat?

How to get pop up for iframe in live chat?

Hi

i want to use Live chat in website that created with Zoho Sites.
but the window size of live chat is too big for putting in page.i want to use Pop up for chat.

i found these codes:

html code:
  1. Click<a href="chat.html"  style="padding-left:0px;"rel="popup console 350 350">here</a> to chat with us
javascript code:

  1. function addEvent(elm, evType, fn, useCapture){if(elm.addEventListener){elm.addEventListener(evType, fn, useCapture);return true;}else if (elm.attachEvent){var r = elm.attachEvent('on' + evType, fn);return r;}else{elm['on' + evType] = fn;}}




    var newWindow = null;


    function closeWin(){
    if (newWindow != null){
       
    if(!newWindow.closed)
            newWindow
    .close();
    }
    }


    function popUpWin(url, type, strWidth, strHeight){

    closeWin

    ();

    type

    = type.toLowerCase();


    if (type == "fullscreen"){
        strWidth
    = screen.availWidth;
        strHeight
    = screen.availHeight;
    }
    var tools="";
    if (type == "standard") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
    if (type == "console" || type == "fullscreen") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
    newWindow
    = window.open(url, 'newWin', tools);
    newWindow
    .focus();
    }


    function doPopUp(e)
    {
     
    //set defaults - if nothing in rel attrib, these will be used
    var t = "standard";
     
    var w = "780";
     
    var h = "580";
     
    //look for parameters
      attribs
    = this.rel.split(" ");
     
    if (attribs[1]!=null) {t = attribs[1];}
     
    if (attribs[2]!=null) {w = attribs[2];}
     
    if (attribs[3]!=null) {h = attribs[3];}
     
    //call the popup script
      popUpWin
    (this.href,t,w,h);
     
    //cancel the default link action if pop-up activated
     
    if (window.event)
       
    {
    window
    .event.returnValue = false;
    window
    .event.cancelBubble = true;
    }
     
    else if (e)
    {
    e
    .stopPropagation();
    e
    .preventDefault();
    }
     
    }

     

    function findPopUps()
       
    {
       
    var popups = document.getElementsByTagName("a");
       
    for (i=0;i<popups.length;i++)
    {
    if (popups[i].rel.indexOf("popup")!=-1)
       
    {
       
    // attach popup behaviour
        popups
    [i].onclick = doPopUp;
       
    // add popup indicator
       
    if (popups[i].rel.indexOf("noicon")==-1)
           
    {
            popups
    [i].style.backgroundImage = "url(pop-up.gif)";
            popups
    [i].style.backgroundPosition = "0 center";
            popups
    [i].style.backgroundRepeat = "no-repeat";
            popups
    [i].style.paddingLeft = "3px";
           
    }
       
    // add info to title attribute to alert fact that it's a pop-up window
        popups
    [i].title = popups[i].title + " [Opens in pop-up window]";
       
    }
    }
     
    }

      addEvent

    (window, 'load', findPopUps, false);
but i can't insert java codes in html source !

So How to get pop up that iframe be loaded in it?


















    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      • Sticky Posts

      • Unveiling Zoho Sites 2.0 - A new dimension in website building

        Dear Zoho Sites Users, We are thrilled to announce the launch of Zoho Sites 2.0 today! This refresh represents a significant step forward in the capabilities of Zoho Sites and is crucial for creating a lasting and positive impact on our customers' businesses.
      • Website Accessibility

        I have two sites created in Zoho Sites which are both live. Some questions: 1. Are any of the template themes WCAG 2.1 AA compliant? 2. How do I change the format of a sub-heading in the header section? 3. Is there any way to add focus indication for
      • Visual Editor Webinar

        Join our FREE live webinar to learn how to use the Zoho Sites Visual Editor to easily design your website. Our product specialist will demonstrate how this tool will help you customize your website to suit your requirements.  Register here: https://www.zoho.com/sites/webinars/
      • SEO for your Zoho Sites Website

        Join our live webinar to learn how to use Zoho Sites' SEO tools to boost your website's ranking. Our product specialist will demonstrate everything you need to know about optimizing your web pages to make them search engine friendly. Register here for free: https://www.zoho.com/sites/webinars/
      • Zoho Sites Webinar | Integrations

        Join our FREE live webinar to learn how to integrate both Zoho and third-party products with your Zoho Sites website. Our product expert will demonstrate how to use these integrations to grow, manage, and retain the customers you bring in. Learn how to take your business forward and build stunningly robust and efficient websites. Register here: https://www.zoho.com/sites/webinars/

      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方