4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Alternative to <a href="#"> ?
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Jun 17, 2003 1:09 pm (14 years, 6 months ago) Reply with QuoteBack to Top

This is kind of silly, but I seem to remember that there was an alternative to <a href="#"> (mainly for links with an onclick attribute). I also remember it involving a JS function to put in there, something like <a href="javascript: something">. Basically I want the link to only open a popup, and not go to the top of the page as it does with href="#". Anyone know what I'm talking about? Laughing

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Darren
Team Member



Joined: 05 Feb 2002
Posts: 549
Location: London

PostPosted: Tue Jun 17, 2003 2:39 pm (14 years, 6 months ago) Reply with QuoteBack to Top

<a href="javascript:onclick=popupFunction();">

That seems to work OK - not sure of its compatibility though.
OfflineView User's ProfileFind all posts by DarrenSend Personal MessageVisit Poster's Website
Darren
Team Member



Joined: 05 Feb 2002
Posts: 549
Location: London

PostPosted: Tue Jun 17, 2003 3:07 pm (14 years, 6 months ago) Reply with QuoteBack to Top

or maybe this....

<a href="#" onclick="popupFunction(); return false;">

see: http://developer.irt.org/script/1725.htm
OfflineView User's ProfileFind all posts by DarrenSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Jun 17, 2003 4:01 pm (14 years, 6 months ago) Reply with QuoteBack to Top

The first one is exactly what I don't want Smile.

I'll try the second, which looks to be what I was looking for.

Edit: Thanks, it works perfectly! Cool

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.06662 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme