Hi all, I have a function that will run everytime a link in my menu is clicked. The problem is that one of the links point to an https and appropriately opens in a new window/tab. I want to break out of the function so that my page does not go blank as a result.
I tried the .end(); function but it doesn't seem to do what I expected as my page goes blank and the https is opened in two other windows/ tabs. below is my exception as it stands:[not complete code - only for illustration] var href=""; if (href == ""){ $.end(); <- here is where I need to break out. } else { $('#content').html($(href).html()); };