#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    USA
    Posts
    67
    Rep Power
    15
    hi, i want to use the submit button to get out of a frame, how do i do this?

    <input type="submit" onclick="newWindowFunction()">

    does it go something like that ? i dontknow the correct function name or syntax. i would appreciate any help on this topic. thanks

    Thanks in advance.

  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    JavaScript is _NOT_ reliable, so don't use it too often. Try something like this:

    <form target="_new">
    <input type="submit">
    </form>
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    USA
    Posts
    67
    Rep Power
    15
    Thanks for the solution...

    Does this fill the current window or does it open up a new window.

    Also, why is javascript unreliable?
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    By default(without specifying "target"), it will be current frame. <form target="_new"> or target="_blank" will be a new window.

    >>why is javascript unreliable?
    Many linux users tend to disable javascript due to browser crash or somethin..

    In addition, since "target" can be inserted within <form>, it's somehow redundant to use javascript to perform such task. So it would be better to pick the best alternative.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    USA
    Posts
    67
    Rep Power
    15
    where can i find more information regarding the "target" property?
  10. #6
  11. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    USA
    Posts
    67
    Rep Power
    15
    thanks a lot freebsd
  14. #8
  15. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    freeBSD's solution is without doubt the best solution to your problem !

    In saying that.... to say that "JavaScript is _NOT_ reliable" is plain daft!~ Surfers are not reliable - true - JavaScript is reliable day in day out assuming the surfer can afford a FREE browser.

    Simon -(yep I know that IE & NS standards adherence is a lot unreliable - but linux browsers???? - please!!)


    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. Frames and CSS (Changing style sheet for a frame)
    By rohanputter in forum CSS Help
    Replies: 1
    Last Post: January 26th, 2004, 06:43 AM
  2. WHM account creation error messages on RH
    By borisbaloney in forum Linux Help
    Replies: 0
    Last Post: December 16th, 2003, 06:54 PM
  3. Replies: 0
    Last Post: February 28th, 2002, 03:12 PM
  4. Changing current frame source
    By MattyB in forum PHP Development
    Replies: 2
    Last Post: February 26th, 2001, 12:27 PM
  5. Replies: 0
    Last Post: April 16th, 2000, 05:31 AM

IMN logo majestic logo threadwatch logo seochat tools logo