Jump to content

Search the Community

Showing results for tags 'document'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 5 results

  1. Hi all, I'm trying to wrap my head around the idea of the window object and the document object relationship. I've read some really good explanations in stackoverflow and others. I have a pretty good grasp of it so I tried an experiment. If the window object opens in the browser, and then the document object opens in the window, then if I change the document, will the window object remain the same. I tried make 2 simple html's - in the first I set a variable like window.myVar = "myValue";. I was able to change the value with a button so it was working fine, and then I used an <a> href to change to a different document. I tried to reference the window.myVar but it came back 'undefined'. If you change documents in a window, does the document always come with a new window, or am I doing something wrong here? Like I said, I've read a lot about the window and document object, but I couldn't see that this was addressed. Thank You for any response....
  2. arpit17041989

    AUTO FILL ONLINE FORM

    dear sir i have one problemi designed one frame page which one side my predefined page frame other side online page like google.com suppose google have form with one input field & a button also where input text field named as "help".my predefined page have similar as google page it designed for copy the field to google field speedly on a clickmy page detail given belowframe name=f1form name=form1input text name= "txt"button name="submit" where google haveframe name=f2form name=ghghginput text name="goo" problem is i want to fill frame f1->input field to frame f2->goo.i am using this statement given below:- parent.f2.document.ghghg["goo"].value=parent.f1.document.form1["txt"].value it works offline means where my frame one page is loaded other frame page should there.please solve my problem
  3. I am developing a function to find a particular element within another element identifier (similar to getElementById but that applies to any other element) ... Because this throws me arror: var ancestor = document.getElementById('divAncestor');var child = ancestor.getElementById('divChild'); I know, HTML specifies that ids must be unique but reality proves that often running scripts that can have items with the same ids. So, thats the reason why I'm not simply calling the child like this: var ancestor = document.getElementById('divChild'); The first option was to add this function to each HTML element, or at least the divs (because that's what interests me identify). The second, and is the one I prefer, is to add a method to the document object and call from there by passing the ID of the father and son as parameters. Is this possible?Thanks for your time.
  4. Hi, What is main difference between window.document.getElementById and document.getElementById? Could you please anyone reply it?
  5. Tom

    References as PDF

    Hi W3Schools - Team, One Month ago, I decided to create my own homepage. During my studies at w3schools.com I sit in front of my laptop and read, change window, type, change window, read, change window, type... After one day I wish to have all references as pdf-document for printing, but I can't found anyone. So my suggestion:All refernces as PDF-document for printing.
×