Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
RE: JavaScript code execute within url
um, javascript://run_some_function()?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
RE: JavaScript code execute within url
errrrrrrr, ".$_GET[0]."" ?>
I think?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
thats in possible you cant run javascript with a url like that , only by using the protocol javascript://
nothings stopping you parsing the url eg http://blah.com/page.html?functiontorun
then just a quick eval to run that function.
quote:Originally posted by Juzzi
quote:Originally posted by Regexp
Can't do that with javascript - you cant obtain get and post variables.
Shouldn't you be able to obtain the GET variables using document.location...?
yup just need to write some sort of parser to do it.
This post was edited on 08-31-2005 at 11:57 AM by -dt-.