Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with FireFox Javascript in Bookmarklet

Status
Not open for further replies.

visiblepulse

Programmer
Joined
Jan 28, 2006
Messages
2
Do you do Javascript?

I need to be able to change the text of the currently selected input box using a bookmarket.
I can do this in Internet Explorer. Can you help figure out how to do it in FireFox?

Here is a test page explaining what's going on.

( )

If you can figure out the FireFox solution, reply to the post.
 
Do you do Javascript?

What a silly question! If people who are reading this do not, they're hardly likely to reply! ;-)

Anyway - suggest reading these, which were found using a quick search on Google for "Firefox createRange":




I think it's the "anchorNode" property you're looking for.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
yeah it was silly question. i pasted the same text into other forums, some which were "web Developer" only forums.

So dan, can you cobble up the exact statement to access the text in an INPUT?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top