Onload Form Focus <script type="text/javascript"> function formfocus() { document.getElementById('search').focus(); } window.onload = formfocus; </script> I'm looking to add ¬ "is there is a element with the id search if so auto focus" else "do nothing" Many Thanks to anyone wishing to help, ibizara ... 24 Dec 2007 02:14
print(), iframe, IE 5/6 Hi! I have an iframe on my page and a button. When the button is clicked, a html page containing some text is loaded into the iframe, and I want the print dialog do be run automatically, in order to print that text. For that, I have put window.onload=function() { parent.iframename.focus(); parent.iframenam... 19 Dec 2007 20:23
Changing the button labels in a confirm box I am writing a page in French and I need to create a confirm box, but I want to change the labels of the buttons from "OK" and "Cancel" into "Oui" and "Non". I've looked around and it seems impossible to do this, so my question is: why is the confirm method so restrictive? All it needs is a question string and t... 10 Dec 2007 00:09
Change the src of an Iframe. Hi ! I have the HTML source like this: <iframe name="Content_IF" name="Content_IF" border=0 width="200" height="200" src="iframe_login.php"></iframe> And I tried to change the source of the iframe like this: document.frames.Content_IF.location.href = 'iframe.php'; or like this: document.Co... 10 Dec 2007 00:09
Onmouseup in select box affects scrollbars Hi, I'm not sure if this is the appropriate group or not. My problem is that I'm trying to simulate a drag and drop between select boxes. So when the user presses the mouse down in one select box and releases it in another, the items selected from the first select box are added to the second box. The items add... 10 Dec 2007 00:09
change the text of browse button in file upload control Hi.I want to change the text of browse button in file upload control in firfox,for example insted of being "browse" be "upload file", how can I do that? Is it possible ?I found a code that only works in IE but it doesent work in fireFox, I want to work in both of them. <html> <head> <title>File Upload Exa... 10 Dec 2007 00:08
errore Errore: uncaught exception: Permesso negato per ottenere la propriet� HTMLDivElement.parentNode qualcuno puo' rispondermi in italiano????? grazie ... 17 Jan 2007 19:46
Exception with xmlHttp.status in mozilla/firefox Prasad wrote: But it's giving exception in mozilla/firefox when I stopped the server (only when I stop .), at line 65 in my code, as [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABL... 6 Dec 2006 10:33
Frames - no scrollbar Hi all, I have a frame layout of my site as follows: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>WikiTech</title> </head> <frameset id="fstSiteLayout" rows="115,*,22" bordercolor="#dcdcdc" frameborder="yes" framespacing="1"> <frame id="frmMastHeadFrame" scrollin... 7 Dec 2006 09:00
Constant focus on popup guys, i am trying to put the focus on my popup. When the user clicks on a button i display a popup and want to keep it in focus ie, the user cant minimise or do anything unless they close the pop up first. now i have implemented this using onblur=window.focus() on my popup. and this works fine, the user cant d... 22 Nov 2006 06:49 |