Jump to content

What Happens When You Click This Link?


astralaaron

Recommended Posts

ok I have a function that fires when the page loads, ( <body onload= etc.. ) this function pattern matches a #hash on a URL and opens a module as the screen snaps down to that area of the web site.It works perfect when you click a link from a different page. It does an onload= and fires the function, snaps the screen, opens the module.the problem is on the same page as the modules, at the top, there are links like this: <a href="#hash"></a> that don't fire an onload= when it snaps the screen, if you refresh after you click the link - the module opens.I have tried putting an onclick=" " to make the function fire immediately when you click the link but the screen snapping down to the hash seems to interupt it maybe? does anyone have an idea how I can make the function fire? if onload doesn't work...

Link to comment
Share on other sites

Please post either some code or at least a link to what you are describing so we can play with it to understand better the entire situation.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...