473,382 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

what does this mean?

I found it in the view source of a corporate website.

<script Language="Javascript">
<!--
var keyMacro=[
['}','alert("Why did you press that? Where does it say to press that? Huh
.... fiddler ...")']
];
//-->
</script>
Jul 23 '05 #1
4 2502
"pete" <pe**@ghjk.com> writes:

[from Subject: what does this mean?]
I found it in the view source of a corporate website.


It's a script that assignes an array to a variable. It does nothing.
That variable is probably used somewhere else on the page in a way
that does do something (and looking at it, probably in an awkward
way).

From the naming, I assume some other code will capture key presses
and execute the alert if someone presses "}". But without the remainder
of the page, it's impossible to tell.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #2
ok, here is rest of page...


<html>
<head>
<title></title>

<link rel="stylesheet" type="text/css" href="style.css">

<script src="include.js"></script>

<script Language="Javascript">
<!--

var keyMacro=[
['}','alert("Why did you press that? Where does it say to press that? Huh
.... fiddler ...")']
];

//-->
</script>

</head>
<body class="DefaultBody" leftmargin="0" marginwidth="0" topmargin="0"
marginheight="0" rightmargin="0" onLoad="window.moveTo(10,10);
window.resizeTo(600,800);" onBlur="window.focus();">

<table border="0" cellspacing="0" cellpadding="0" width="250">

<!-- Proofs of Signature -->
<tr>
<td width="20">&nbsp;</td>
<td width="210" class="DefaultTextBold">
<br>acceptable proofs of signature<br><br>
</td>
<td width="20">&nbsp;</td>
</tr>
<tr>
<td width="20">&nbsp;</td>
<td bgcolor="#eeeeee" width="210" class="DefaultText">
<a href="#" onClick="alert('Credit\/Debit
Card\n----------------------------------------------------------------------
----------\n\nAny credit / debit card or high street store card (e.g. Marks
& Spencer) EXCLUDING Solo & Electron. \n \nAs from 1st July 2003 the card
must be photocopied and its image retained. - the front of the card only
needs to be photocopied. The name, all numbers and expiry date must be
fully visible. The card must not be out of date.'); return
false;">Credit/Debit Card</a><br>
<a href="#" onClick="alert('Cheque Guarantee
Card\n----------------------------------------------------------------------
----------\n\nAny Building Society or Bank cheque guarantee card can be used
for signature only provided the bank / credit card company statement has not
been used as proof of address'); return false;">Cheque Guarantee
Card</a><br>
<a href="#" onClick="alert('Photocard Driving
Licence\n-------------------------------------------------------------------
-------------\n\nFull UK Driving Licence (inc Northern Ireland) - NB: If it
is the new-style two-part licence (comprising a credit card sized photocard
and a paper counterpart),then we require only the plastic photocard, unless
otherwise requested by Credit referrals. - A Provisional Driving Licence is
also acceptable on the condition that it is the new-style two-part
licence.'); return false;">Photocard Driving Licence</a><br>
<a href="#" onClick="alert('Firearms
Certificate\n---------------------------------------------------------------
-----------------\n\nA current valid certficate showing address and
signature'); return false;">Firearms Certificate</a><br>
<a href="#" onClick="alert('Passport (UK or
International)\n------------------------------------------------------------
--------------------\n\n A Full valid UK Ten Year passport or any valid
International Passport.\n\n A Passport extension is not acceptable'); return
false;">Passport (UK or International)</a><br>

</td>
<td width="20">&nbsp;</td>
</tr>
<!-- Proofs for Business Customer Types -->

<tr>
<td width="20">&nbsp;</td>
<td width="210" class="DefaultTextBold">
<br>acceptable proofs for business customer types<br><br>
</td>
<td width="20">&nbsp;</td>
</tr>
<tr>
<td width="20">&nbsp;</td>
<td bgcolor="#eeeeee" width="210" class="DefaultText">

<a href="#"
onClick="alert('Partnership\n-----------------------------------------------
---------------------------------\n\nPartnership accounts require personal
proofs, one valid proof of address and signature for two partners who will
both be credit checked.'); return false;">Partnerships</a><br>
<a href="#" onClick="alert('Limited
Company\n-------------------------------------------------------------------
-------------\n\nLimited company requires company letterhead or a Purchase
Order'); return false;">Limited Company</a><br>
</td>
<td width="20">&nbsp;</td>
</tr>
<tr>
<td width="20">&nbsp;</td>
<td width="210" class="DefaultTextBold">
<br>acceptable proofs of address<br><br>
</td>
<td width="20">&nbsp;</td>
</tr>
<tr>

<td width="20">&nbsp;</td>
<td bgcolor="#eeeeee" width="210" class="DefaultText">
<a href="#" onClick="alert('Bank/Credit Card
Statement\n-----------------------------------------------------------------
---------------\n\nThe most recent Bank or Credit card statement (within the
last three months)'); return false;">Bank/Credit Card Statement</a><br>
<a href="#" onClick="alert('Full UK Driving
Licence\n-------------------------------------------------------------------
-------------\n\nSignature only or accepted as second proof of address. Full
UK Driving Licence (inc Northern Ireland). If it is the new-style two-part
licence (a credit-card-sized photocard and paper counterpart), then only the
plastic photocard is required'); return false;">Full UK Driving
Licence</a><br>
<a href="#" onClick="alert('Family Allowance
Book\n----------------------------------------------------------------------
----------\n\nMost up to date familly allowance book showing current address
\n \nThe book must show Date of Issue Stamp or Date of last Order'); return
false;">Family Allowance Book</a><br>
<a href="#" onClick="alert('Firearms
Certificate\n---------------------------------------------------------------
-----------------\n\nA current valid certficate showing address (if not used
as proof of signature)'); return false;">Firearms Certificate</a><br>
<a href="#" onClick="alert('Pension
Book\n----------------------------------------------------------------------
----------\n\nMost up to date Pension book showing current address \n \nThe
book must show Date of Issue Stamp or Date of last Order'); return
false;">Pension Book</a><br>
<a href="#" onClick="alert('Utility
Bill\n----------------------------------------------------------------------
----------\n\nWater, Gas, Electricity, BT/Cable landline Telephone and
Council Tax bill. Address only (dated within the last 3 months)'); return
false;">Utility Bill</a><br>

</td>

<td width="20">&nbsp;</td>
<tr>
<td width="20">&nbsp;</td>
<td width="210" class="DefaultTextBold">
<br><br><br>
</td>
<td width="20">&nbsp;</td>
</tr>
<td width="20">&nbsp;</td>
<td width="210" class="DefaultTextBold">
YOU MUST <a href="#" onClick="window.close(); return false;">CLOSE THIS
WINDOW</a> WHEN FINISHED TO CONTINUE
WITH THE APPLICATION.
</td>
<td width="20">&nbsp;</td>
</tr>

</table>

<br><br></body>
</html>

Jul 23 '05 #3
"pete" <pe**@ghjk.com> writes:
ok, here is rest of page...
A link would have been better.

Ok, it doesn't seem the variable "keyMacro" is used at all,
unless it is referred from the script file "include.js".

The page is not very professional, if it is intended for use
on the internet.
onLoad="window.moveTo(10,10); window.resizeTo(600,800);" onBlur="window.focus();"


These handlers from the body element are reason enough to never come
back to this page. It tries to resize and move the window, and it
tries to disallow you from switching to another browser window.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #4

hi lasse,

the page is in a members area of the online registrations section of a UK
based mobile phone operator. (#FF6600)

it would not be possible to link to it without giving password etc.

thanks for the intersting comments though...

I dont remember what it was but once I found something similar but even more
unprofessional in the source code of the company information search at
companies house... strange what these web developers get up to to amuse
themselves!

ps. i promise i don't go looking for these things! just come across them
occasionslly.

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
3
by: Jukka K. Korpela | last post by:
I have noticed that the meaning of visibility: collapse has been discussed on different forums, but with no consensus on what it really means. Besides, implementations differ. The specification...
86
by: Michael Kalina | last post by:
Because when I asked for comments on my site-design (Remember? My site, your opinion!) some of you told me never to change anything on font-sizes! What do you guys think of that:...
44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
2
by: Steve Richter | last post by:
What does the "." mean in the following sql script stmts? use GO if exists (select * from dbo.sysobjects where id = object_id(N'.') and OBJECTPROPERTY(id,N'IsUserTable') = 1) drop table ....
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
51
by: jacob navia | last post by:
I would like to add at the beginning of the C tutorial I am writing a short blurb about what "types" are. I came up with the following text. Please can you comment? Did I miss something? Is...
1
by: Frank Rizzo | last post by:
Some of the classes in the framework are marked as thread-safe in the documentation. In particular the docs say the following: "Any public static (*Shared* in Visual Basic) members of this type...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
9
by: JoeC | last post by:
m_iWidth = (int)pBitmapInfo->bmiHeader.biWidth; m_iHeight = (int)pBitmapInfo->bmiHeader.biHeight; What does this mean? I have seen v=&var->member.thing; but what does it mean when you...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.