Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2008
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Special Javascript Link Help

    I am wondering if there is a way to create a link that will direct you to a page on my site and then execute javascript in the url like:

    Code:
    <a href="page.html javascript:document.etc"></a>
    I am interested in using this to create a cool application along the lines of what sharedcopy.com does.

    Anyone know a way to do this. All help would be greatly appreciated.

  • #2
    New to the CF scene
    Join Date
    Jun 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi mberkom,

    one possibility is to stick them into the location hash, "page2.html#alert('hello');" and have page2's script look into eval(window.location.hash.substring(1)) ?

    btw, thanks for trying out sharedcopy :-)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •