Aug 9, 2006 #1 Dawg06 Programmer Jul 24, 2006 13 CA Is it possible to call an anchor tag through a function? If so does anyone have an example of how I would do this? Thanks!
Is it possible to call an anchor tag through a function? If so does anyone have an example of how I would do this? Thanks!
Aug 9, 2006 #2 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB If you mean "can I simulate clicking on an anchor to visit the page stored in its href attribute", then the answer is "yes": Code: <a id="wibble" href="someurl">... location = document.getElementById('wibble').href; Hope this helps, Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
If you mean "can I simulate clicking on an anchor to visit the page stored in its href attribute", then the answer is "yes": Code: <a id="wibble" href="someurl">... location = document.getElementById('wibble').href; Hope this helps, Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Aug 28, 2006 #3 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB Dawg06, Did that work for you? Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
Dawg06, Did that work for you? Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Sep 18, 2006 Thread starter #4 Dawg06 Programmer Jul 24, 2006 13 CA Thanks Dan! Worked great, sorry for the delay Upvote 0 Downvote