I opened another window. Like to know how you put an inputbox and <H1> into another window.
Thanks
Printable View
I opened another window. Like to know how you put an inputbox and <H1> into another window.
Thanks
basically. I don't know if about:blank works in NS, but it does for IE.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()">
:)
Thank you!
What is the meaning of the backslash in your code?
type=\"text\"
it escapes the "
Thanks for your reply again.
So, would it be correct if I say \" is equal to double quotes?
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"
:)
Thanks for clearing that up for me.