SunQuest
           HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 21st, 2000, 10:52 PM
billyo billyo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 114 billyo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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).]

Reply With Quote
  #2  
Old July 23rd, 2000, 05:48 PM
Argrajoca Argrajoca is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: SPAIN
Posts: 47 Argrajoca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Try with window.focus() or top.focus()

Reply With Quote
  #3  
Old July 23rd, 2000, 08:10 PM
billyo billyo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 114 billyo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Thanks, I tried that. It seems like the opened window can't move focus around or blur things within itself. onfocus=window.opener.focus() worked, but it wasn't quite I was going for... the code works in netscape, so for IE I just ended up putting in the "disabled" attribute as netscape ignores that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Why doesn't this work?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway