Jump to content


Photo

Link Button - no pop-up blocker


  • Please log in to reply
No replies to this topic

#1 multimesut

multimesut

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 73 posts

Posted 06 June 2017 - 01:20 PM

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


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users