1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Send specific JS event over address bar

Discussion in 'HTML & JavaScript' started by WildDisease, Nov 20, 2011.

  1. WildDisease

    WildDisease Junior Member

    Joined:
    Aug 3, 2011
    Messages:
    109
    Likes Received:
    5
    There's a JS function called changeRadio() that takes a variable as parameter; compares the variable with expected results.

    I want to know is how can I rewrite this JS script from client side and run it through FF address bar. I know it's something like 'javascript: script here;' but I haven't been able to get this working if I just try to throw a rewritten script in the address bar and submitting it. I try to do javascript:alert(2+2) as well but it doesn't seem to work either.
     
  2. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    javascript in the location bar doesn't have any access to the page anymore since ff 6, see bug #656433 (sorry can't post links), they removed it because of this 'copy this link (javascript url) in the address bar to ... blablalba' attacks.
    try chrome...
     
    • Thanks Thanks x 4