HighDots Forums  

Execute my javaScript whenever any page get downloaded

Javascript JavaScript language (comp.lang.javascript)


Discuss Execute my javaScript whenever any page get downloaded in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
aryan
 
Posts: n/a

Default Execute my javaScript whenever any page get downloaded - 09-10-2008 , 01:07 AM







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

Reply With Quote
  #2  
Old   
Lasse Reichstein Nielsen
 
Posts: n/a

Default Re: Execute my javaScript whenever any page get downloaded - 09-10-2008 , 01:15 AM






aryan <aryan.m.26 (AT) gmail (DOT) com> writes:

Quote:
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.'


Reply With Quote
  #3  
Old   
GArlington
 
Posts: n/a

Default Re: Execute my javaScript whenever any page get downloaded - 09-10-2008 , 07:44 AM



On Sep 10, 6:07*am, aryan <aryan.m... (AT) gmail (DOT) com> wrote:
Quote:
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...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.