tag:blogger.com,1999:blog-3893582346020662759.post5342784360516120008..comments2024-03-02T10:24:11.056+05:30Comments on SharePoint, ASP.Net, JQuery, SQL Solutions: Open all anchor links in new windowAnonymoushttp://www.blogger.com/profile/11277148819153438060noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3893582346020662759.post-43386125201634207812014-01-12T15:25:46.553+05:302014-01-12T15:25:46.553+05:30Hi Praveen - this works great thank you. I am not ...Hi Praveen - this works great thank you. I am not familiar with Java Script and have a question. In my case I have several div id's I would like to use this script for on the same html page but I have read that I can not have multiple ids within: var links = document.getElementById('content'). I repeated your code three times in my header for my 3 different div ids but when I tested - it only works for the last one (I believe each iteration redefines it). Do you have a suggestion for how I can apply this to three different div ids on the same html page? Is it possible to do this using a class instead of an id? Thank you for your time. Brittnoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-61928415957703303322011-12-02T12:03:41.895+05:302011-12-02T12:03:41.895+05:30The code document.getElementById() is the javascri...The code document.getElementById() is the javascript code. <br /><br /><script type="text/javascript"><br />alert(document.getElementById('controlID'));<br /></script>Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-37429030467906730112011-12-01T13:22:14.394+05:302011-12-01T13:22:14.394+05:30How to find the document.getElementById, I don'...How to find the document.getElementById, I don't know what is the document.getElementByIdPatrick Aunoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-80900834015968994092010-08-27T11:12:31.398+05:302010-08-27T11:12:31.398+05:30Hi there,
To get this working, the only thing whic...Hi there,<br />To get this working, the only thing which you needs to change here is, this line.<br />var links = document.getElementById('content').getElementsByTagName('a'); <br /><br />In your page, is there any HTML control with ID as "content"? The code is trying to find the element with id "content" and looping through it for anchor links. If your page dont have control with id "content" then please replace "content" with some other control id on the page. Then it should work.<br /><br />Good luck.<br />Praveen.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-16049999762280653992010-08-27T10:48:16.689+05:302010-08-27T10:48:16.689+05:30I have tried this post .But Unfortunately It is no...I have tried this post .But Unfortunately It is not working for me .Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-76663139733354655822010-07-31T08:21:54.328+05:302010-07-31T08:21:54.328+05:30Ok, i have a little problem. I exported my WP blog...Ok, i have a little problem. I exported my WP blog in a new doc with a XML file just like its says to do, but when i went to edit it and place your option 2 in it with Notepad, i failed to see (i used the find option)the head font.<br />I did find, however, the script style one. What would you reccommend for me to try and do?Renéhttps://www.blogger.com/profile/13939228016165371166noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-73067038664482908262010-06-30T12:10:38.185+05:302010-06-30T12:10:38.185+05:30Thanks a lot,
It works.
i used it in my website,...Thanks a lot,<br /><br />It works.<br /><br />i used it in my website, hanaptayo.com, can i target it to other url with frameset like digg?Anonymousnoreply@blogger.com