Jump to content
uniGUI Discussion Forums
multimesut

Link Button - no pop-up blocker

Recommended Posts

procedure TMainForm.UniFormShow(Sender: TObject);
var
x,link,js:String;
begin
  x:=UniButton1.JSName+'_id';
  link:='http://www.telsam.com.tr/';
  js:='document.getElementById("'+x+'").href="'+link+'";';
  js:=js+'document.getElementById("'+x+'").target="_blank";';
  js:=js+'document.getElementById("'+x+'").outerHTML=document.getElementById("'+x+'").outerHTML';
  UniSession.AddJS(js);
end;

Best Regards

Share this post


Link to post
Share on other sites

×