The Official Salesforce Blog

The Official Salesforce Blog

How to Web Link into a Salesforce Page

Jamie Grenney Mar 29, 2005

If 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.

 

3 Comments

Chris

Perfect! Will help alleviate clients' complaints, past and future.

Erik Mittmeyer

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?

Bill

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?

Post a comment