stevennickelby Posted August 31, 2006 Share Posted August 31, 2006 Hello the following script should highlight all the text in the <text area> when you click on java script:selectAll But I get a forbidden 403 error, Do I need to set permissions....aarrr if so how would you do that, I'm a complete novice with Java, :'( <head> <script language="<b style="color:black;background-color:#ffff66">Javascript</b>"> <!-- /* <b style="color:black;background-color:#a0ffff">Select</b> <b style="color:black;background-color:#99ff99">All</b> script- By Website Abstraction(http://www.wsabstract.com) Over 200+ free JavaScripts here! */ function selectAll(theField) { var tempval=eval("document."+theField) tempval.focus() tempval.<b style="color:black;background-color:#a0ffff">select</b>() } //--> </script> </head> <body> <form name="test"> <a href="<b style="color:black;background-color:#ffff66">javascript</b>:selectAll('test.select1')"><b style="color:black;background-color:#a0ffff">Select</b> <b style="color:black;background-color:#99ff99">All</b></a><br> <textarea name="select1" rows=5 cols=20>This is some <b style="color:black;background-color:#ff9999">text</b></textarea> <p> <a href="<b style="color:black;background-color:#ffff66">javascript</b>:selectAll('test.select2')"><b style="color:black;background-color:#a0ffff">Select</b> <b style="color:black;background-color:#99ff99">All</b></a><br> <textarea name="select2" rows=5 cols=20>This is some more <b style="color:black;background-color:#ff9999">text</b></textarea> </form> </body> Link to comment Share on other sites More sharing options...
stevennickelby Posted September 1, 2006 Author Share Posted September 1, 2006 ?? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.