|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
change focus using PHP
I have a mysql/php site which uses a header.inc, a menu.inc and an index.php to generate the webpages. The header.inc includes a search engine, (search.php) which takes the focus when any page is created. This means that when the user enters a value into a textbox on any of the generated pages and hits return (i.e. the enter key) the search engine is launched. Is there a way of changing the focus to an element in the page body in PHP without incorporating JavaScript (document.form.element.focus) or diasbling the enter key(i.e. onSubmit='return false').
Appreciate any tips rashm |
|
#2
|
|||
|
|||
|
RE: change focus using PHP
No..changing focus is a client side thing..PHP is server side only....you'll need to use javascript or something similar for this one...
|
|
#3
|
|||
|
|||
|
RE: change focus using PHP
thanks for that matt. I'll tryout some JavaScript etc first or might introduce an alternative header 'altheader.inc" which does not contain the search engine for this type of page.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > change focus using PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|