Posts Tagged Text

How Do I Start This Text Slideup/slidedown Javascript Without The Content?

I’m trying to figure out how to start out with no text showing under the “Less | More” links and make it expand when you click “More”.
Here’s the website: http://www.plantpower.com/index2.php

, , , , , ,

3 Comments

How To Replace Text On Page Load In Javascript?

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

, , , ,

1 Comment

How Do I Prevent A User From Typing Into A Text Area (javascript)?

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?

, , , , , , ,

2 Comments

How With Javascript Could I Make A Text Input Box Perform A Function When The User Presses The Return Key?

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.

, , , , , , , , ,

No Comments

How To Go On The Next Line Without Using The Enter Key When Typing Text For Javascript?

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).

, , , , , , , ,

2 Comments

How Do I Replace Text In An Html Document Using Javascript?

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?

, , , , ,

2 Comments

How Can I Add A Text Input To A Form At Runtime With Javascript?

I’d like a function that adds a new text input to a form when a button is pressed.

, , , , ,

2 Comments

How Can I Display Text A Certain Way With Javascript?

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!

, , , ,

1 Comment

How Do I Create Scrolling Text With Javascript?

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

, , , ,

1 Comment

How Do I Make A Text Scrollbox For A Website Using Javascript?

I am using frontpage. I would be so greatful if you helped me out. A code or a tutorial would be nice :D 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. :D

, , , , ,

1 Comment

Powered by Yahoo! Answers