Announcement

Collapse
No announcement yet.

javascript:history in a post is replaced by javascript<b></b>:history

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • javascript:history in a post is replaced by javascript<b></b>:history

    Hello all,

    I wrote a post with a link in it to the previous page :
    HTML Code:
    <A HREF="javascript:history.back()">
    And it gets replaced by :
    HTML Code:
    <A HREF="javascript<b></b>:history.back()">
    Apparently it's only the "javascript:" part that gets replaced by "javascript<b></b>:"

    Does anyone know if there is a way around this ? Either to avoid the insertion of <b></b> or a different way to write a history.back link

    Thank you,


    - Jeff

  • #2
    I had the same issue. One resolution was to replace the colon with ASCII code for colon.

    The colon seems to cause an issue, so by using the ASCII tag for colon, we kind of trick vB into thinking the colon is really there.

    Comment


    • #3
      Hm, I just had this same issue, but replacing with the escaped version of the colon still didn't work right. I ended up using the 'onhover' solution (got this tip by viewing the vbulletin output )

      Code:
      <a href="[URL]http://ozscience.com/forums/subaru-engines-faq/30-where-engine-oil-leaking-my-subaru.html[/URL]#" onclick="history.back(1); return false;">

      Comment

      Related Topics

      Collapse

      Working...
      X