PDA

View Full Version : 2 actions in 1 link



tp4fp
01-15-2008, 08:59 AM
Hi. This is the link right now:

<a href="javascript:flowertabs.expandit(5)" class="boldbuttons green" href="javascript:ajaxpage('downloads/external/rats.htm', 'rightcolumn');"><span>Download</span></a>
I know it isn't going to work now, but how do i combine the 2 'href''s into opening up the right-column scripts and also the fifth tab?

Master_script_maker
01-15-2008, 09:30 PM
try :

<a href="#" onclick="flowertabs.expandit(5); ajaxpage('downloads/external/rats.htm', 'rightcolumn');" class="boldbuttons green" ><span>Download</span></a>
or mabey (but less likely):

<a href="javascript:flowertabs.expandit(5);ajaxpage('downloads/external/rats.htm', 'rightcolumn'); " class="boldbuttons green" ><span>Download</span></a>