quick question: multiple hrefs in active desktop

Discussion in 'Windows Desktop Systems' started by Ketchupisyourfriend, Apr 13, 2003.

  1. Ketchupisyourfriend

    Ketchupisyourfriend OSNN Senior Addict

    Messages:
    262
    I'm trying to have a Yahoo login and a Google search on my active desktop. I don't use seperate html files for every piece of my desktop, I just put it all in one big file. Whenever I click login on the yahoo thing it submits it as a blank google search. What do I need to change to fix this, or is it even possible? Do I need to make it a seperate html file? Thanks.
     
  2. Lighter

    Lighter . . . . . . . . .

    Messages:
    229
    Location:
    NYC
    They're both forms, be sure to separate them (<form></form>) within the html file.

    Code:
    
    <form action="http://www.google.com/search" name="f" target="_new">
    <input type="hidden" name="hl" value="en">
    <input type="hidden" name="ie" value="ISO-8859-1">
    <input type="text" name="q" maxlength="100" size="27">
    <a onClick="submit(); return false;" href="javascript:void(0)> search </a> 
    <a onClick="reset(); return false;" href="javascript:void(0)"> clear</a> 
    </form>
    
    
    <form action="http://www.google.com/search" name="f" target="_new">
    <input type="hidden" name="hl" value="en">
    <input type="hidden" name="ie" value="ISO-8859-1">
    <input type="text" name="q" maxlength="100" size="27">
    <a onClick="submit(); return false;" href="javascript:void(0) search </a> 
    <a onClick="reset(); return false;" href="javascript:void(0)"> clear</a> 
    </form>
    
    
    'Course, both forms are the same but you get the idea. :)
     
  3. Ketchupisyourfriend

    Ketchupisyourfriend OSNN Senior Addict

    Messages:
    262
    I was missing the </form> tag on my google search, that fixed it. Is there any way to get it to submit when I hit enter instead of me having to click on it? It used to work that way with just one, but now that I have both I seem to have to click.
     
  4. Lighter

    Lighter . . . . . . . . .

    Messages:
    229
    Location:
    NYC
    Not sure, mine works. There's always the TAB / ENTER stroke. :)
     
  5. Ketchupisyourfriend

    Ketchupisyourfriend OSNN Senior Addict

    Messages:
    262
    Ahh... didn't think of that. Thanks again