Jump to content

Accessing W3IFrameHTMLElement URL Clicks

Recommended Posts

25 minutes ago, COMFIED said:

I have a W3IFrameHTMLElement with content that contains URL links.

Is there a way to format the URL links in W3IFrameHTMLElement content so that I can click on them and access within the web app?

Another way of asking the same question: Can I pass parameters via URL without reloading the web app?

Link to post
Share on other sites
  • Administrators


  MyDiv.InnerHtml:='<a id="MyLink1" href="www.example.com/whatever">Click in me</a>';
  var MyHandle:=BrowserAPI.document.getElementById('MyLink1');
  if (MyHandle) then begin
    MyHandle.onclick:=procedure(event: JEvent)

Edit: And you can get the link by accessing MyHandle.href when that event fires.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...