Forum Moderators: open

Message Too Old, No Replies

Make two scripts work in one hyperlink

IE meltdown, HELP!

         

JAB Creations

11:27 am on Jan 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm having a major IE meltdown at my site... IE users just cant get in because IE is being...IE.

I need this script to work AND send the user but it's ONLY refreshing the page!

function option1(){
switchStyle('/themes/css-theme-classic.css',0) && window.location = 'index2.php'
}

<a href="index2.php" onclick="option1()"">linky linky</a>

RonPK

12:16 pm on Jan 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> switchStyle('/themes/css-theme-classic.css',0) && window.location = 'index2.php'

Break that into two instructions:

switchStyle('/themes/css-theme-classic.css',0); 
location = 'index2.php';