Advanced Search

Results 1 to 4 of 4

Thread: need help with submit buttons

  1. #1
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy need help with submit buttons

    I have multiple submit buttons all on one page, problem is though, that i cannot get them to work with an iframe i have set within a frameset, heres what im using:
    Code:
    <input type=submit value=home onclick="center.location='home.html'"></input>
    I can get that to work with a normal page with no frames, but i cant figure out how to get it to work with my iframe (and the iframe is named "center" so i dont quite know what im doing wrong)
    help would be greatly appreciated.

  2. #2
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nevermind.. i fugured it out myself... it was "parent.right.center.location='home.html'"

  3. #3
    Join Date
    Sep 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, new question... (and i dont think ill be able to figure this one out, but...)
    how do i change 2 things with 1 mouseclick on a button? i want the iframe to change as well as a bit of text in a text box in the main frame (the one with the buttons), is there any way to do this?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Seperate multiple Javascript statements with a semicolon (. You can put as many as you like in one event handler.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •