|
-
Dec 3rd, 2001, 07:19 PM
#1
Thread Starter
Fanatic Member
How do you write to another window?
I opened another window. Like to know how you put an inputbox and <H1> into another window.
Thanks
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Dec 3rd, 2001, 09:11 PM
#2
Code:
<script>
function KeyPress()
{
e = window.open("about:blank","ff");
var x = "<h1>Hello There</h1><input type=\"text\">";
e.document.write(x);
e.document.close();
}
</script>
<input type="button" onClick="KeyPress()">
basically. I don't know if about:blank works in NS, but it does for IE.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 4th, 2001, 05:32 PM
#3
Thread Starter
Fanatic Member
Thank you!
What is the meaning of the backslash in your code?
type=\"text\"
Last edited by Hawk; Dec 4th, 2001 at 05:38 PM.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Dec 4th, 2001, 05:37 PM
#4
PowerPoster
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Dec 4th, 2001, 05:43 PM
#5
Thread Starter
Fanatic Member
Thanks for your reply again.
So, would it be correct if I say \" is equal to double quotes?
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Dec 4th, 2001, 09:44 PM
#6
correct, if you have a string that is "The string = "Hello", okay", you would have major problems because of the inner quotes. So to fix it, you use this : "The string = \"Hello\", okay"
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 5th, 2001, 01:42 PM
#7
Thread Starter
Fanatic Member
Thanks for clearing that up for me.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|