|
|
#1 |
|
In Runtime
|
Is it possible to put JavaScript in a URL. For example, you're on mysite.org and there's a link leading to mysite.org/morestuff. Is it possible to put JavaScript in the URL? (e.g. mysite.org/morestuff/javascript)
|
|
|
|
|
|
#2 |
|
Site Team
Join Date: Jul 2009
Posts: 2,629
|
What do you mean by the URL? A URL (uniform resource locator) is used as a unique way of identifying pages - javascript doesn't come into it.
You can type javascript into the address bar and you can set javascript to run when you click a link if that's what you mean?
__________________
Save the whales, feed the hungry, free the mallocs. |
|
|
|
|
|
#3 |
|
In Runtime
|
I mean that the link goes to a whole new page and automatically runs JavaScript on it.
|
|
|
|
|
|
#4 | ||
|
In Runtime
Join Date: Jan 2010
Posts: 320
|
Quote:
The URL, is just the page 'identifier', it wont change the webpage, or make things happen, as it is, in effect, just a name. Quote:
|
||
|
|
|
|
|
#5 |
|
Site Team
Join Date: Jul 2009
Posts: 2,629
|
You're trying to go about it the wrong way - if you want to modify the contents of a specific webpage via JS after loading, you're much better off writing a greasemonkey script.
__________________
Save the whales, feed the hungry, free the mallocs. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|