The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Autofocus
fixit
post Aug 27 2015, 01:58 PM
Post #1





Group: Members
Posts: 6
Joined: 27-August 15
Member No.: 23,455



I use a search engine a lot.

I would like the webpage to start with the cursor already in the search box.

I understand autofocus can do that.

http://www.html5tutorial.info/html5-autofocus.php

Can I edit a webpage using autofocus and would it work?

If so, can someone help me with editing the webpage ?

Thanks a lot.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 27 2015, 02:25 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



I'm not sure if you mean a search box on one of your own pages or not. If it is your own page and the browser supports it, sure, it will work. If it isn't your own page, obviously you can't edit it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fixit
post Aug 27 2015, 04:06 PM
Post #3





Group: Members
Posts: 6
Joined: 27-August 15
Member No.: 23,455



QUOTE(pandy @ Aug 27 2015, 02:25 PM) *

I'm not sure if you mean a search box on one of your or pages or not. If it is your own page and the browser supports it, sure, it will work. If it isn't your own page, obviously you can't edit it.


Can you show me how to edit it ?

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Aug 27 2015, 04:12 PM
Post #4


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



You didn't reply to the question Pandy asked you: is it for your own web page or not?

If it's your own page, how did you create it in the first place?
If it's not, then there's no way you can edit it.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fixit
post Aug 27 2015, 06:07 PM
Post #5





Group: Members
Posts: 6
Joined: 27-August 15
Member No.: 23,455



QUOTE(Frederiek @ Aug 27 2015, 04:12 PM) *

You didn't reply to the question Pandy asked you: is it for your own web page or not?

If it's your own page, how did you create it in the first place?
If it's not, then there's no way you can edit it.


If you do not want to help, then just say so.

Seamonkey has editing capabilities.

I have edited webpages that were not mine and they continue to work fine.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 27 2015, 07:29 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



OK, so what is it you want help with? You linked to a page that explains how to use autofocus so I guess that's not what you are asking.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fixit
post Aug 27 2015, 08:47 PM
Post #7





Group: Members
Posts: 6
Joined: 27-August 15
Member No.: 23,455



QUOTE(pandy @ Aug 27 2015, 07:29 PM) *

OK, so what is it you want help with? You linked to a page that explains how to use autofocus so I guess that's not what you are asking.


I would like to find out how to add autofocus to a webpage.

This is the webpage.

http://us.yhs4.search.yahoo.com/web/advanc...ltavista&p=

I would like the cursor at the box next to "all of these words."

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 27 2015, 09:22 PM
Post #8


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



Some browsers let users run their own user javascripts on web pages. See https://en.wikipedia.org/wiki/Greasemonkey and https://en.wikipedia.org/wiki/Greasemonkey#..._other_browsers
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 28 2015, 04:54 AM
Post #9


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(fixit @ Aug 28 2015, 03:47 AM) *

QUOTE(pandy @ Aug 27 2015, 07:29 PM) *

OK, so what is it you want help with? You linked to a page that explains how to use autofocus so I guess that's not what you are asking.


I would like to find out how to add autofocus to a webpage.

This is the webpage.

http://us.yhs4.search.yahoo.com/web/advanc...ltavista&p=

I would like the cursor at the box next to "all of these words."


You add the autofocus attribute to the start tag for the form field you want to have that feature as the page you linked to shows. What is your problem with that? It doesn't help to repeat the same question since we don't understand what part you need help with.

Or doesn't Greasmonkey let you alter the HTML after all, just add custom JavaScript?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 28 2015, 05:16 AM
Post #10


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Aug 28 2015, 11:54 AM) *

Or doesn't Greasmonkey let you alter the HTML after all, just add custom JavaScript?

Note that the OP wrote Seamonkey (the browser), while I wrote about Greasemonkey (the Firefox extension)...

A user javascript can of course modify the HTML too.
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 28 2015, 06:07 AM
Post #11


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Yeah, I meant Seamonkey, what the OP at long last told us he wanted to use.

That's what I meant. Maybe it's JavaScript the OP wants help with and not HTML. It would be easier if he told us what he wants of course, but I guess that won't happen this side of Christmas. happy.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fixit
post Aug 28 2015, 10:05 AM
Post #12





Group: Members
Posts: 6
Joined: 27-August 15
Member No.: 23,455



Attached a pic of where I would like the cursor.

This post has been edited by fixit: Aug 28 2015, 10:05 AM


Attached thumbnail(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fixit
post Sep 3 2015, 08:23 PM
Post #13





Group: Members
Posts: 6
Joined: 27-August 15
Member No.: 23,455



Since the problem has everyone stumped, I thought I would share the answer. :-)

CODE
<input size="28" id="f0va" name="va" type="text" autofocus />


Each of you should give what you have decided in your heart to give, not reluctantly or under compulsion, for God loves a cheerful giver.
2 Cor. 9:7

This post has been edited by fixit: Sep 3 2015, 08:25 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 5 2015, 08:50 PM
Post #14


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



But that's what I said and what it says on the page you linked to yourself. I'd say stumpedness remains. blink.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 05:37 PM