Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
5 years, 11 months ago
I am having a custom URL field on task. I dont want to show my users the URL when I click on the field.I have created a visulaforce page that have buttons on clicking whom the URL should open in an iframe.
Can anyone suggest how to achieve the same?
Jun 30, 2017 at 10:59
Shobhit Saxena Shobhit Saxena
1,097 4 4 gold badges 20 20 silver badges 49 49 bronze badges
document.getElementById('myIframe').src = 'https://www.Salesforce.com';
<input type="button" value="Change site" onClick="onClick()" />
<iframe id="myIframe" src="https://salesforce.stackexchange.com"></iframe>
Jun 30, 2017 at 12:18
564 3 3 silver badges 12 12 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only