Wednesday 15 August 2012

javascript - How to add a base url to generated elements? -


I have a page where I want to display content from a website inside my app. I have a parser who takes the element into my site and mine in this case. But I have these problems, link server.sand campaign.aspx? Wfege is like , when a user clicks it, then I want to add a http://example.com/ before link http: // example .com / campaign.aspx? Wfege . Is this possible in javascript? if so, how? Please look at my Bela, it is working perfectly and is the exact copy of my site.

Object:

Cheers

can be done.

You have to add the original tag to the appropriate href, such as

  & lt; Html & gt; & Lt; Top & gt; & Lt; Base href = "http://example.com/" target = "_ blank" & gt; .... .... & lt; / Head & gt; & Lt; Body & gt; & Lt; A href = "campaign.aspx? Wfege" & gt; ClickHealth & lt; / A & gt; & Lt ;! - Because of the base tag, this href will redirect you to http://example.com/campaign.aspx?wfege- & gt; .... & lt; / Body & gt; & Lt; / Html & gt;    

No comments:

Post a Comment