
July 21st, 2000, 10:52 PM
|
|
Contributing User
|
|
Join Date: Jun 2000
Posts: 114
Time spent in forums: < 1 sec
Reputation Power: 9
|
|
|
This seems like a trivial thing, but I'm stumped. The input box in the page works fine, but the input box written into the popup window doesn't work the same. Try the code to see what I mean:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre><html>
<head>
<script language="JavaScript"><!--
var test=open("","","width=400,height=100")
test.document.write("<html><head></head><body><input type=text value=BUGGER onfocus=this.blur()></body></html>")
//--></script>
</head>
<body>
<input type=text size=15 value=BUGGER onfocus=this.blur()>
</body>
</html>[/code]
I've been able to determine that the onfocus event is working, and the "this" is working, but the "blur()" is not working, why is that?
How can I make input boxes in the pop up window be read only?
Shaka, when the walls fell...
[This message has been edited by billyo (edited July 21, 2000).]
[This message has been edited by billyo (edited July 21, 2000).]
|