One Click - Two Actions

One link - Two actions on the Same Page.
By Paul


This is a nice technique to open two different content items in two different I-Frames on the same page.

 

Firstly, you should create the two I-frames on one of your pages. Next create the two pages of content. The content pages should be sized to fit the relevant I-frames and EXCLUDED from your site navigation. You then create a hyperlink on the I-frame page with either a button or text as your link.

 

Once your standard link is created, right-click on the link and select “Add HTML” from the list of options. You can now edit the html code of the link as follows:


<a href="1stContentPage.html" target="ifrm_1"onmousedown="parent.frames['ifrm_1'].location='1stContent Page.html';parent.frames['ifrm_2'].location='2ndContentPage.html';return false;" onClick="return false">TEXT</a>


Simply replace the page names in
BOLD with the names of your content pages.


Notes: When using content page names, be sure to use the HTML page names, and not the names you give the pages in your site. Html page names should also be in lowercase, even if you manually rename your html pages with upper or mixed case characters. This is because when your site is uploaded to your server, the html page names will usually be converted to lower case.