Trigger popup from javascript?

Hi Jack, The js worked on 1 button i have on an html page. However, I created 4 buttons and of course, when the 2nd, 3rd or 4th button were selected, they all returned the same popup window. I have 4 page includes that should only render for the assigned button.

What do I need to do with either the js syntax you provided so that each button points to the exact target?

This is my js syntax modified from your suggesition (works perfect with one button):

function popupWindow() { var popupXMLString = '<popup title="triple 6" width="70%">' + '<components>' +'<includepanel type="skuid" uniqueid="sk-4MOStR-047" pagename="Create A Widget" module=""/>' +'</components>' +'</popup>'; var popupXML = skuid&#46;utils&#46;makeXMLDoc(popupXMLString); popup = skuid&#46;utils&#46;createPopupFromPopupXML(popupXML); } 

This is my html/css syntax and it works fine, just need to somehow have each button reference the correct js.

SUBMIT

Thanks!!!