Search results

  1. A

    Stop form from submitting with function

    I've decided to take out the form element and instead add the event to the button: <html> <head> <title>Test Form</title> <script> function submit(){ alert('validating'); alert(document.getElementsByName('test')[0].value); } </script> </head> <body> <input type="button"...
  2. A

    Stop form from submitting with function

    I am trying to validate a form with Javascript. I have simplified my code as much as possible and the form still submits. Here is my HTML code: <html> <head> <title>Test Form</title> <script> function submit(){ return false; } </script> </head> <body> <form onsubmit="return...
  3. A

    Javascript DOM

    I have a webpage which adds a floating iframe to the body. I have a javascript function: function jettison(){ var string = prompt('Enter frame name:'); var newIframe = document.createElement('iframe'); newIframe.setProperty('src','http://www.blackle.com')...
  4. A

    Percent compatibility issue

    Thank you, chrishirst. I was just setting the body to 100% and it wasn't working, but I did the same thing to html and now it works. :D
  5. A

    Percent compatibility issue

    Yes, it is.
  6. A

    Percent compatibility issue

    I want it to be 80% of the screen. How do I do that, since I can't choose what height the screen is? EDIT: The parent element is the body, just so you know.
  7. A

    Percent compatibility issue

    I have a content div whose background is red. I put a bunch of random text so it fills up several screens worth of text. I set overflow to auto, then set the height to 80% (in css). All of the browsers COMPLETELY ignore the 80%, but when I set it to a pixel value, it recognizes it and sets the...
Top