PennController for IBEX › Forums › Support › click button and file attachment › Reply To: click button and file attachment
March 2, 2023 at 10:06 am
#9981
Keymaster
Hello,
In a PennController trial, you could do that:
newTrial(
newText("<a href='https://getsamplefiles.com/download/zip/sample-1.zip' target='_blank'>Click here to download a zip file</a>").print()
,
newButton("Next").print().wait()
)
In an Ibex Message controller, you could do that:
var items = [
["intro", "Message", {html:
"<div>\
<p><h1>hello</h1></p>\
<p><strong>world</strong></p>\
<p><a href='https://getsamplefiles.com/download/zip/sample-1.zip' target='_blank'>Click here to download a zip file</a></p>\
</div>"
}]
];