How to add custom HTML buttons to open third party websites on click?
Some of the tutorials have been followed, but such code will not work for me:
'customcode' = & gt; '{Literal} & lt; Input id = "button" title = "button" class = "button" type = "button" name = "button" value = "some button" onClick = "window.open (" http: // Google.com "," "," Width = 800, height = 600 ");" & Gt; {/ Literal} ',' sugar_html '= & gt; Array ('type' = & gt; 'button', 'value' = & gt; 'button', 'html_Options' = & gt; array ('class' = & gt; 'button', 'id' = & gt; ; 'Button' 'Title' = & gt; 'Button', 'Onclic' = & gt; 'window.open ("http://google.com", "", "width = 800, height = 600") ; ',' Name '= & gt;' button ',),),
This will divide "wire" by. Such as http will be treated as input property! Which is considered as property and what happens in the form of value. I did not get that URL once Make sure you are on the right track. Instead
Try it out Inter mixed quote ... Instead of double quotes you were embedded in double quotes, use only one of those quotation marks. 'customcode' = & gt; '{Literal} & lt; Input id = "button" title = "button" class = "button" type = "button" name = "button" value = "some buttons" onClick = "window.open (" http://google.com "," "," Width = 800, height = 600 ");" & Gt; {/ Literal} ',
' customcode '= & gt; '{Literal} & lt; Input id = "button" title = "button" class = "button" type = "button" name = "button" value = "some button" onClick = "window.open (\ 'http: / / google.com \' , \ '\', \ 'Width = 800, height = 600 \'); "& gt; {/ Literal} ',
Comments
Post a Comment