By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

Execute my javaScript whenever any page get downloaded

P: n/a

hello to all

I want to execute my own javascript whenever any page get downloaded.
Actually i want to design a javascript which add some restriction to
the pages and this script should be executed
for all the pages . If any one know this please help!!

thanks in advance
Sep 10 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
aryan <ar********@gmail.comwrites:
I want to execute my own javascript whenever any page get downloaded.
Actually i want to design a javascript which add some restriction to
the pages and this script should be executed
for all the pages . If any one know this please help!!
Whether you can, and what you can do, depends on the browser. I see
you use Firefox, so you might want to look into the Greasemonkey
addon.

/L
--
Lasse Reichstein Nielsen
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Sep 10 '08 #2

P: n/a
On Sep 10, 6:07*am, aryan <aryan.m...@gmail.comwrote:
hello to all

I want to execute my own javascript whenever any page get downloaded.
Actually i want to design a javascript which add some restriction to
the pages and this script should be executed
for all the pages . If any one know this please help!!

thanks in advance
Javascript is something that runs on the client ONLY if it is enabled,
so effectively it can NOT restrict anything, if you want to put some
access restrictions you will have to do it on the server...
If you still want to run a script when the page loads you can look at
body onLoad event, or if you do NOT want to edit every page you will
need to look at SSI concept, or something [depending on your web/
application server] that runs on start of every request...
The syntax of the above [server-side] options are dependant on server
software...
Sep 10 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.