A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Linking to the #element on a page

  1. #1
    // Silent Protagonist ivanthem's Avatar
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    295

    Linking to the #element on a page

    Hi
    I'm trying to link to certain parts of my HTML page with page anchors (pagename.html#link). In swish, I create a button and onpress set it to #link using GET. This works fine in Firefox but not in IE. Can this be done in swish for IE?

    Thanks,
    Ivan.

  2. #2
    Senior Member Lys12's Avatar
    Join Date
    Feb 2001
    Location
    Munich, Germany
    Posts
    5,237
    hi,

    use a javascript action instead:

    on (release) {
    javascript('window.location.href="#anchorname"');
    }

  3. #3
    // Silent Protagonist ivanthem's Avatar
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    295
    Thanks! I never thought of that

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center