Posts Tagged Text
How To Replace Text On Page Load In Javascript?
Posted by in Javascript Questions on February 8th, 2010
OK. So I have a code fragment as below…
ಇದು ನ
Now, I want the & symbol to be replaced with nothing, or in other words I want to delete the & word from that code chunk when the page loads. What is the Javascript that can help me do this?
Many thanks!
SK
How Do I Prevent A User From Typing Into A Text Area (javascript)?
Posted by in Javascript Questions on January 24th, 2010
I’m creating a character count at the bottom of a text area (much like the one on Yahoo Answers), and I want to prevent a user from typing any more into the textarea once he/she has used all of his/her allotted characters. How do I do this?
How With Javascript Could I Make A Text Input Box Perform A Function When The User Presses The Return Key?
Posted by in Javascript Questions on January 4th, 2010
Pressing the Return key merely clicks the closest button based on several factors (number of buttons, order of declaration, whether or not a Submit button exists, etc.), and is no guarantee of performing any specific action.
You didn’t mention the action you wish the text box to perform, but generally, when you want to trigger a specific action related to an input field like a textbox, you either code one of the textbox’s action events to call a Javascript method, or the form’s onSubmit attribute to call a Javascript function.
Without more specifics, I assume you want to do something with the text before the form is submitted? If so, do you want to cancel the submission if certain conditions are not met?
It would help if you fully describe the sequence of events you wish to occur.
How To Go On The Next Line Without Using The Enter Key When Typing Text For Javascript?
Posted by in Javascript Questions on December 27th, 2009
The only other way to move down a line would be to copy and paste text that is already written on multiple lines.
If you have previously typed in the space you would like to move to, the down arrow usually works but this is a bit of a time-waster (typing a whole page of code just to be able to move down a line with the arrow).
How Do I Replace Text In An Html Document Using Javascript?
Posted by in Javascript Questions on October 19th, 2009
Is it possible to have JavaScript scan an entire HTML document for text, and replace that text once it’s found? If so, what code would do it?
How Can I Add A Text Input To A Form At Runtime With Javascript?
Posted by in Javascript Questions on October 17th, 2009
I’d like a function that adds a new text input to a form when a button is pressed.
How Can I Display Text A Certain Way With Javascript?
Posted by in Javascript Questions on October 2nd, 2009
I want the text to display in an h1 heading size. How can I achieve that? My code:
var theName;
theName=prompt(“Enter Your name”,”John Smith”);
document.write(“
Hello,
“+ theName);
alert(“This is the name you entered:” + theName)
Thanks!
How Do I Create Scrolling Text With Javascript?
Posted by in Javascript Questions on September 21st, 2009
To be honest i don’t even know where to start but want to try it myself.
Is it the setInterval() and clearInterval() i need or setTimeout() and clearTimeout().
any tips would be greatly appreciated or a simple online tutorial would be good.
Thanks in advance
How Do I Make A Text Scrollbox For A Website Using Javascript?
Posted by in Javascript Questions on September 13th, 2009
I am using frontpage. I would be so greatful if you helped me out. A code or a tutorial would be nice
See, I’m making a website for a school project and I’m pretty good at website design but I really need help with this. Thanks.
Recent Answers