469,579 Members | 1,627 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

new window focus

does some one know whay this code doesn't works with mozilla:
<body onload=\"window.focus();\">
how can i focus this window in both explorer and mozilla browsers?

thanks

Oct 1 '07 #1
3 2888
On Oct 1, 11:55 am, Gandalf <goldn...@gmail.comwrote:
does some one know whay this code doesn't works with mozilla:

<body onload=\"window.focus();\">
Why the backslashes?

Peter

Oct 1 '07 #2
On Oct 1, 8:59 pm, Peter Michaux <petermich...@gmail.comwrote:
On Oct 1, 11:55 am, Gandalf <goldn...@gmail.comwrote:
does some one know whay this code doesn't works with mozilla:
<body onload=\"window.focus();\">

Why the backslashes?

Peter
because i print it width PHP you can ignore that it's meaningless

Oct 1 '07 #3
Gandalf wrote:
does some one know whay this code doesn't works with mozilla:

<body onload=\"window.focus();\">
Ignoring the escapes (you stated it's PHP code), it does not work because
Mozilla is not allowed by the user to make it work. This was discussed
shortly ago.
how can i focus this window in both explorer and mozilla browsers?
You can not. Focusing windows, as many other things, is at the discretion
of the user.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Oct 1 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Barry Svee | last post: by
31 posts views Thread by Benno Bös | last post: by
4 posts views Thread by Csaba Gabor | last post: by
13 posts views Thread by tochiromifune | last post: by
4 posts views Thread by Spizzat2 | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.