JavaScript Problem with konqueror | not a bug
Rainer Lehrig
lehrig at t-online.de
Tue Jan 21 07:24:59 GMT 2003
Hi,
some homepages ask the browser if it is a Netscape or an InternetExplorer and
then do different things. Such a homepage for example is:
http://www.telefonbuch.de
... Where you can search for phone numbers in germany.
really bad !
But what to do ?
On this page konqueror will not work. You can't click Search !
Why do you not insert an option for Identity ? like in opera.
Then konqueror could run as konqueror, mozilla, netscape, iexplore ...
Then konqueror would even work with such pages !
A small HTML code segement is following:
################################################################################
<title>Das Telefonbuch</title>
<script language="JavaScript">
<!--
function TInfoTaoPopup(url)
{
var x = screen.width-835;
var help =
'width=835,height=768,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes,left='
+ x + ',top=0';
window.open(url, 'newTinfoWindow', help);
}
//-->
</script>
</head>
<script language="JavaScript">
<!--
var Netscape = new Boolean();
if(navigator.appName == "Netscape")
Netscape = true;
else
Netscape = false;
function StartSearch(Eventt)
{
if( Netscape)
{
if(Eventt.which == 13)
{
SubButton('telStarteSucheSuchSeite');
}
}
}
if( Netscape)
{
window.captureEvents(Event.KEYPRESS);
window.onkeypress = StartSearch;
}
//-->
</script>
<!-- JScript-Bereich fuer MS Internet Explorer -->
<script for=document event="onkeypress()" language="JScript">
{
if( window.event.keyCode == 13)
{
SubButton('telStarteSucheSuchSeite');
}
}
</script>
################################################################################
Yours:
Rainer Lehrig
More information about the kfm-devel
mailing list