First, a disclaimer: I am a librarian by trade, but have the responsibility of maintaining/updating our online catalog. I've dealt with some JavaScript before, but I am no expert, so please forgive my ignorance.
Question: Our automation system creates information dynamically for us. In one particular area of our page, it is adding a target=_self attribute that I believe is causing problems with our attempt at making a tab display. My theory is that if I can get this attribute changed to _blank, it might work, but I haven't figured out a way to do this. I have tried the following:
[CODE=javascript]<script type="text/javascript">
/ * Checks for target attribute in link tags. */
var f=window.docume nt.links;
var i=f.length
while(i--){
f[i].target='_blank '
}
</script>
[/CODE](the above was modified from another posting on this forum)
However, this does not seem to work because the link is still going to the _self target. Any suggestions would be greatly appreciated. Thank you!
Jamen McGranahan
Question: Our automation system creates information dynamically for us. In one particular area of our page, it is adding a target=_self attribute that I believe is causing problems with our attempt at making a tab display. My theory is that if I can get this attribute changed to _blank, it might work, but I haven't figured out a way to do this. I have tried the following:
[CODE=javascript]<script type="text/javascript">
/ * Checks for target attribute in link tags. */
var f=window.docume nt.links;
var i=f.length
while(i--){
f[i].target='_blank '
}
</script>
[/CODE](the above was modified from another posting on this forum)
However, this does not seem to work because the link is still going to the _self target. Any suggestions would be greatly appreciated. Thank you!
Jamen McGranahan
Comment