473,322 Members | 1,409 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,322 software developers and data experts.

looking for list of javascript - IE commands

Hi,

I was looking for a list of commands, but I can't find it.
It's about commands you can type in the Internet Explorer adress bar, to get
some information about a website.
For instance "javascript:alert(document.lastmodified)" to find out when the
website was updated.
Can someone help me out?
Thanx in advance,

Anton
Jul 20 '05 #1
4 9575
Hi,

ÂÑTØÑ wrote:
Hi,

I was looking for a list of commands, but I can't find it.
It's about commands you can type in the Internet Explorer adress bar, to get
some information about a website.
For instance "javascript:alert(document.lastmodified)" to find out when the
website was updated.
Can someone help me out?
Thanx in advance,

Anton

The javascript: pseudo-protocol allows you to type and execute any
script, as long as it's a one liner (which allows a LOT of commands if
you master the language). Statements must be separated by a semicolon ';'

So in short, you can take any supported JavaScript command, and use it
this way. For a list of JavaScript methods/attributes, refer to your
browser's documentation. For myself, I like
<URL:
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/>
and (though it's obsolete)
<URL:
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html>

HTH,

Laurent
--
Laurent Bugnion, GalaSoft
Webdesign, Java, javascript: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jul 20 '05 #2
"ÂÑTØÑ" wrote:
Hi,

I was looking for a list of commands, but I can't find it.
It's about commands you can type in the Internet Explorer adress bar, to get
some information about a website.
For instance "javascript:alert(document.lastmodified)" to find out when the
website was updated.
Can someone help me out?
Thanx in advance,

Anton


Actually, typing "javascript:alert(document.lastmodified)" into the address bar
of IE will alert "undefined". What you are looking for is
"javascript:alert(document.lastModified)". The value of the information returned
this way is questionable, since the same information can be retrieved in
practically any GUI browser by right-clicking the page and choosing "Properties"
or "View Page Info".

As for a "list of commands to get information about a website" using this
method, basically anything that can be executed in JavaScript can be executed
here, so you have access to all the objects in the DOM and any methods and
properties they support.

That isn't very much help, but the problem is, there are hundreds, if not
thousands, or things that can be retrieved from the DOM using the mechanism you
are describing. For example:

javascript:s=[];for(i=0; i < window.frames.length; i++) {
s.push(window.frames[i].name); for(j =0; j <
window.frames[i].document.forms.length; j++) { s.push('\t' +
window.frames[i].document.forms[j].name); for (k=0; k <
window.frames[i].document.forms[j].length; k++) { s.push('\t\t' +
window.frames[i].document.forms[j].elements[k].name); } } } alert(s.join('\n'));

gives you a hierarchy of all the elements on all the forms in all the frames in
the current document. Again, this information is of questionable value,
especially considering the same information is available in a much more
digestible form in Mozilla's DOM Inspector.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #3
"Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_SPAM.ch> schreef
The javascript: pseudo-protocol allows you to type and execute any
script, as long as it's a one liner (which allows a LOT of commands if
you master the language). Statements must be separated by a semicolon ';'
So in short, you can take any supported JavaScript command, and use it
this way. For a list of JavaScript methods/attributes, refer to your
browser's documentation. For myself, I like
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/> and (though it's obsolete)
http://devedge.netscape.com/library/....3/reference/f rames.html> HTH,
Laurent
"Grant Wagner" <gw*****@agricoreunited.com> schreef the problem is, there are hundreds, if not
thousands, or things that can be retrieved from the DOM using the mechanism you are describing. For example:
javascript:s=[];for(i=0; i < window.frames.length; i++) {
s.push(window.frames[i].name); for(j =0; j <
window.frames[i].document.forms.length; j++) { s.push('\t' +
window.frames[i].document.forms[j].name); for (k=0; k <
window.frames[i].document.forms[j].length; k++) { s.push('\t\t' +
window.frames[i].document.forms[j].elements[k].name); } } } alert(s.join('\n')); gives you a hierarchy of all the elements on all the forms in all the frames in the current document. Again, this information is of questionable value,
especially considering the same information is available in a much more
digestible form in Mozilla's DOM Inspector.
Grant Wagner

Thanks, I think this will help me.
Somebody sent me this tip as well:
www.bookmarklets.com
Best regards,
Anton
Jul 20 '05 #4
"Laurent Bugnion, GalaSoft" <galasoft-LB@bluewin_NO_SPAM.ch> schreef
The javascript: pseudo-protocol allows you to type and execute any
script, as long as it's a one liner (which allows a LOT of commands if
you master the language). Statements must be separated by a semicolon ';'
So in short, you can take any supported JavaScript command, and use it
this way. For a list of JavaScript methods/attributes, refer to your
browser's documentation. For myself, I like
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/> and (though it's obsolete)
http://devedge.netscape.com/library/....3/reference/f rames.html> HTH,
Laurent
"Grant Wagner" <gw*****@agricoreunited.com> schreef the problem is, there are hundreds, if not
thousands, or things that can be retrieved from the DOM using the mechanism you are describing. For example:
javascript:s=[];for(i=0; i < window.frames.length; i++) {
s.push(window.frames[i].name); for(j =0; j <
window.frames[i].document.forms.length; j++) { s.push('\t' +
window.frames[i].document.forms[j].name); for (k=0; k <
window.frames[i].document.forms[j].length; k++) { s.push('\t\t' +
window.frames[i].document.forms[j].elements[k].name); } } } alert(s.join('\n')); gives you a hierarchy of all the elements on all the forms in all the frames in the current document. Again, this information is of questionable value,
especially considering the same information is available in a much more
digestible form in Mozilla's DOM Inspector.
Grant Wagner

Thanks, I think this will help me out.
Somebody sent me this tip as well:
www.bookmarklets.com
Best regards,
Anton


Jul 20 '05 #5

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

Similar topics

0
by: semarketing-request | last post by:
>>>> This is a multi-part message in MIME format. **** Command 'this' not recognized. **** No valid commands found. **** Commands must be in message BODY, not in HEADER. **** Help for...
10
by: Tank | last post by:
First off let me say that I am by no means a skilled programmer so i probably have made a dozen mistakes in my attempt at coding my problem. I will tell you the problem so that you have an idea of...
0
by: Matt | last post by:
Hello, I am attempting to get a software prototype UI/demo built in Flash to talk with existing C++ (so I can exchange data and commands between the application-software already developed in the...
4
by: binnyva | last post by:
Hello Everybody, I am writing an interactive tutorial for JavaScript. I created a text box into which the users can input javascript commands. On pressing a button, these commands will be...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
11
by: admin | last post by:
Hi all, First time poster here... I'm a webmaster and I'd like to add a simple script to my website which will allow users to fill in a brief multiple choice questionaire, and then provide a...
16
by: devicerandom | last post by:
Hi, I am currently using the Cmd module for a mixed cli+gui application. I am starting to refactor my code and it would be highly desirable if many commands could be built as simple plugins. ...
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.