a) Keyboard users to see a focus outline on navigation links. b) Keyboard users to see the outline still there if they use the browser Back button, and continue tabbing from that link onwards. c) Mouse users to NOT see an outline if they use the browser Back button.
The default behaviour of focus() method is displaying the cursor at start of the char(In FF focusOffset is 0(zero) and anchorOffset is 0(zero)). I need to display the focus at end of char after calling focus() method.
Is there a way to set the focus on a form field without using focus()? I use ajax to build the form and if I try to set the focus using focus() an error is generate because of the form hasn't been built by ajax. So, it would be nice if I could set the focus() as I built the form.
In my particular case, the image is changing on the server although the URL for it remains the same, but the browser is still displaying the old image from its cache rather than the new image from its URL location.
I want to use jquery to detect what type of browser you are using and display a link to a .wmv file if you are on IE or display a link to a .mp4 file if you are any other type of browser.I have this script declaration in my <head> section.
On my site i use a lot of features that are unsupported by older browsers, and right now it looks pretty stupid when the features are only partially shown. So i was wondering if there's a way of making the browser look to different css files depending on which browser and version it is. For example, css3 gradient backgrounds are supported in firefox 3.6 or something, but not in 3.0. All the hacks out there is to 3.*, so it changes for the allready working 3.6 too if i hack it. I want to controll it so that i have a specific css file for the none-supporting version and lower and one for the supporting and above. I looked at a bad browser plugin (because it has some of the basic features im looking for)
is it possible to scroll / jump to say, 10px above a div? i tried adding padding, but it doesn't work.also, when I use <a href="#xxxx">, is it possible to prevent the browser from adding #xxxx to the url in the browser?
I have to open a new window when user closes the browser window. But the problem is that on browser close unload event calls and the same event is called with we refresh the page. So it is opening the popup window on both window close and window refresh.
$.browser is being deprecated however I still need to know what browser is hitting the page. In some cases I need to modify a layout or position an element by some pixels. The number of pixels is different for different browsers.How can I detect the browser using jQuery without using $.browser?
document.[Form Name].[Field Name].focus();
If you happened to have the page scrolled above where the error field is then the page will scroll so that the error field is at the very top of the window. If you happened to have the page scrolled below where the error field is then the page will scroll so that the error field is at the very bottom of the window. Neither of these is very desirable. Any way to get the error field to the middle of the window?
If in the textarea (textarea3), the value is not "abc", and the user uses "Tab" to go to the next textarea (textarea4), it will alert an error message...and the focus will return to the textarea (textarea3) again...
It works in Internet Explorer, however in firefox it does not work? Anyway have any ideas why & how? Code:
If I use the following construct in the frame "main" for a link to an extern site:
<A HREF="http://www.any.xy" TARGET="extern">
the Browser is creating the window "extern", loading the page www.any.xy an setting the focus to "extern". But when I go return to "main" without closing "extern", a click to an other link (e.g. www.2nd_any.xy) on "main" does not setting the focus to "extern".
For setting the focus to "extern" in the second case, I have used the following construct:
<A HREF="http://www.any.xy" TARGET="extern" onClick="setTimeout('extern=window.open('','extern');fr emd.focus();',500);"> an example</A>
This construct has worked very well for a few years, but since about one year, the sesult was the same as using <A HREF="http://www.any.xy" TARGET="extern">
In this year, I have changed: win 95 --> win 2000 modem 56k --> DSL Netscape 4.5 --> Netscape 7.1
Can anybody tell me a possibility setting the focus to "extern" in the second case? Is the changing of my configuration the reason, that the construct has failed?
Neglecting the annoyance factor for a moment, is it possible to keep one browser window at the screen forefront (in front of all other browser windows) but still be able to interact with a window directly beneath it? How would this be pulled off in JS?
I encountered some strange behaviour when using focus()