How to Web Link into a Salesforce Page
Mar 29, 2005If you want a Web Link to link into a Salesforce page and not popup, it can be difficult. You end up with two sets of tabs (an entire second set inside of the frame).
There is a way around this, although it's not that intuitive.
1) Create an scontrol that links to your WIL. The scontrol looks like this:
<script type="text/javascript">
window.parent.parent.location.href="https://na1.salesforce.com/home/schedule.jsp?yr=2005&mo=3&cal_lkid=023300000002PSQ";
</script>
2) Create a WIL that leverages this scontrol.
The key is the window.parent.parent.location, which will take over the entire screen with your new link.

Perfect! Will help alleviate clients' complaints, past and future.
Posted by: Chris | May 23, 2005 at 02:57 PM
Cool tip. I tried it with the merge duplicate accounts tip described elsewhere and it worked just fine. Well, it does have a minor flaw: the back button won't work correctly, because history has an additional entry, so you have to click it twice (and fast). Is there any workaround for this? I tried location.replace() instead of location.href, but it doesn't work. Any other idea?
Posted by: Erik Mittmeyer | August 12, 2005 at 03:18 PM
Looks like it could solve a problem, but non programmers like me need a full explanation of:
"Create a WIL that leverages this scontrol"
Can you give an example?
Posted by: Bill | September 14, 2005 at 06:07 PM