Manage Learn to apply best practices and optimize your operations.

Redirect Web users to any content with one page

Cut roll out costs for web shortcuts by using Javascript to redirect the web user using input from the browser location

Cut roll out costs for Web shortcuts by using Javascript in a page to redirect the Web user using input from the browser location. The code below is an edited version of what we use on our own Website. We have to set up redirection URLs to be used in marketing. These shortcuts bring the user to a specific page regarding a special promotion or new product information.

Using the URL:*
www.domain.com/Website/Webpages.nsf/Main_Frameset?Openframeset&Query=MaySpecial

Opens the Web page 'MaySpecial' in the Main Frameset. If you leave out the pagename or just open the frameset, the homepage comes up as the default.

*Use the Page with the code below in the data area of the frameset you create.
In HTML Head Content:
"<script language="Javascript"> function Redirection(){ var
baseurl="http://www.domain.com/Website/Webpages.nsf/pages/"; var
qs=top.location.href; var breakhere=qs.indexOf("&query=")+7; var
addurl=qs.substring(breakhere, qs.length); if ((breakhere<=7)||
(breakhere==qs.length)){addurl="HomePage+2002"}; var resurl=baseurl+addurl;
var t="_self";window.location.replace(resurl); }</script>" In Onload: Redirection();

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close